我想直接打印我的水晶报表,而不弹出打印机选择.我该怎么做?
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.
myReportDocument.PrintOptions.PrinterName = "PRINTER_NAME";
myReportDocument.PrintToPrinter(copies, collate, startPage, endPage);
这篇关于不使用打印机选择对话框打印的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!