We get this exception while not making big reports. We never make reports bigger then 5 pages.
We do make alot reports. Can the numbers of reports cause this exception?
Or do need to put the ReportProcessor in a using statement?
Piece of our code :
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