在WPF中打印Telerik报告不止一次

时间:2014-05-21 16:39:47

标签: c# wpf telerik telerik-reporting

我在WPF应用程序中使用Telerik Report打印收据报告:

    SalesReport _salesReport = new SalesReport(_netShiftSalesAmount);
    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 = _salesReport;
    reportProcessor.PrintReport(instanceReportSource, printerSettings);

这是有效的,但我想在每次付款时打印超过收据,(让我们说3张收据)每张收据包含不同的物品。

如何多次拨打同一份报告?

提前致谢

0 个答案:

没有答案