1

I want to print my crystal report directly, without printer selection popup. How can I do this ?

myReportDocument.SetDataSource(saveDataSet);
//Print
crystalReportViewer1.ShowRefreshButton = false;
crystalReportViewer1.ShowCloseButton = false;
crystalReportViewer1.ShowGroupTreeButton = false;
crystalReportViewer1.ReportSource = myReportDocument;
crystalReportViewer1.PrintReport();

I'm using the default (and only) printer.

Nathan Koop
  • 24,803
  • 25
  • 90
  • 125
wiwulo
  • 201
  • 3
  • 10

1 Answers1

3
myReportDocument.PrintOptions.PrinterName = "PRINTER_NAME";
myReportDocument.PrintToPrinter(copies, collate, startPage, endPage);
Chris Doggett
  • 19,959
  • 4
  • 61
  • 86