Automatic Print In C#

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • swiftproduction
    New Member
    • Feb 2020
    • 1

    Automatic Print In C#

    How can I print in c# without me selecting the printer I'm gonna use? I already set the POS printer as default but I'm still getting this..
    Attached Files
  • Yamasiash
    New Member
    • Mar 2020
    • 4

    #2
    I print from FastReport, there it is done very simply.
    Code:
    Report report = new Report ();
    report.Load ("filename");
    report.Prepare ();
    // print report to pdf printer
    report.PrintSettings.Printer = "PDFCreator";
    report.PrintSettings.ShowDialog = false;
    report.Print ();
    in "reportSettings " you can configure a lot of things, in particular everything that can be configured in the print dialog.
    Last edited by gits; Mar 27 '20, 12:04 PM. Reason: added code tags

    Comment

    Working...