Print without Printer selection dialog

后端 未结 1 636
闹比i
闹比i 2020-12-20 05:48

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

myReportDocument.SetDataSource(saveDataSet);
//Print
crystal         


        
相关标签:
1条回答
  • 2020-12-20 06:05
    myReportDocument.PrintOptions.PrinterName = "PRINTER_NAME";
    myReportDocument.PrintToPrinter(copies, collate, startPage, endPage);
    
    0 讨论(0)
提交回复
热议问题