打印时延迟

时间:2014-01-27 22:17:01

标签: c# wpf printing telerik-reporting

我使用此代码在我的WPF应用程序中打印收据:

Receipt _receiptReport = new Receipt();
System.Drawing.Printing.PrinterSettings printerSettings = new System.Drawing.Printing.PrinterSettings();
System.Drawing.Printing.PrintController standardPrintController = new System.Drawing.Printing.StandardPrintController();
Telerik.Reporting.Processing.ReportProcessor reportProcessor = new Telerik.Reporting.Processing.ReportProcessor();
reportProcessor.PrintController = standardPrintController;
Telerik.Reporting.InstanceReportSource instanceReportSource = new Telerik.Reporting.InstanceReportSource();
instanceReportSource.ReportDocument = _receiptReport;
reportProcessor.PrintReport(instanceReportSource, printerSettings);

但打印时有延迟。这段代码有什么问题,还是有其他方法可以更快地打印出来?

0 个答案:

没有答案