tried to post it in Reporting forum, but unsuccessfully, doesn't show
Hi,
here is the code for background printing.
void ReportToDefault(Report report)
{
if (report == null) return;
System.Drawing.Printing.PrintController standardPrintController =
new System.Drawing.Printing.StandardPrintController();
Telerik.Reporting.Processing.ReportProcessor reportProcessor
= new Telerik.Reporting.Processing.ReportProcessor();
reportProcessor.PrintController = standardPrintController;
try
{
reportProcessor.PrintReport(report, Properties.Settings.Default.defaultPrinter);
}
catch (Exception ex) { MessageBox.Show(ex.Message); }
}
The question is:
If the high intensive printing is needed, then what is the best practice to use the code?
Is it better to instantiate the controller and processor only once, on the App start up, and then just pass arguments to PrintReport?
What if it's using im multithreading mode, when Docs come ech time while the processor maybe is still busy in printing?
Thanks you!
Hi,
here is the code for background printing.
void ReportToDefault(Report report)
{
if (report == null) return;
System.Drawing.Printing.PrintController standardPrintController =
new System.Drawing.Printing.StandardPrintController();
Telerik.Reporting.Processing.ReportProcessor reportProcessor
= new Telerik.Reporting.Processing.ReportProcessor();
reportProcessor.PrintController = standardPrintController;
try
{
reportProcessor.PrintReport(report, Properties.Settings.Default.defaultPrinter);
}
catch (Exception ex) { MessageBox.Show(ex.Message); }
}
The question is:
If the high intensive printing is needed, then what is the best practice to use the code?
Is it better to instantiate the controller and processor only once, on the App start up, and then just pass arguments to PrintReport?
What if it's using im multithreading mode, when Docs come ech time while the processor maybe is still busy in printing?
Thanks you!