System.Drawing.Printing.
PrintController standardPrintController = new System.Drawing.Printing.StandardPrintController();
ReportProcessor reportProcessor = new ReportProcessor();
reportProcessor.PrintController = standardPrintController;
reportProcessor.PrintReport(report, printerSettings);
Our exception logging :
---EXCEPTIONS----------
[OutOfMemoryException]
Out of memory.
---STACK TRACE----------
at System.Drawing.Image.FromStream(Stream stream, Boolean useEmbeddedColorManagement, Boolean validateImageData)
at Telerik.Reporting.Processing.ReportPrintDocument.OnPrintPage(PrintPageEventArgs eventArgs)
at System.Drawing.Printing.PrintDocument._OnPrintPage(PrintPageEventArgs e)
at System.Drawing.Printing.PrintController.PrintLoop(PrintDocument document)
at System.Drawing.Printing.PrintController.Print(PrintDocument document)
at System.Drawing.Printing.PrintDocument.Print()
at Telerik.Reporting.Processing.ReportProcessor.PrintReport(IReportDocument reportDocument, PrinterSettings printerSettings)
at CLGroup.Intranet.DataFacade.Print.ExecutePrint.ExecutePrintDocument() PrinterName : \\EMVMIIS01\GELAS01 BranchId : 11 Feature : InvoicePrint
IEnumerable<MyPoco> pocos = _reportingTasks.GetMyPocos();
var report = new MyPocoReport {DataSource = pocos};
ReportViewer1.ReportSource = new InstanceReportSource {ReportDocument = report};