i am using RadControls Winforms Q1 2011 SP1 with Reporting Q1 2011 SP1,
in one of my reports in the page between 85-95 i get "A Generic GDI+ error occured"..
i tried a lot and the source of problem is a picturebox in my report that show the Student pictures.
Student objects loaded with Nhibernate
here is the stack trace from output window:
*** RENDER PAGES STARTED ***
*** RENDER PAGES DONE in 00:00:16.6764322 ***
An error has occurred while rendering the report: System.Runtime.InteropServices.ExternalException: A generic error occurred in GDI+.
at System.Drawing.Imaging.Metafile..ctor(Stream stream)
at Telerik.ReportViewer.WinForms.DrawablePage..ctor(Stream stream)
at Telerik.ReportViewer.WinForms.PageLayout.AddPage(Stream stream)
at Telerik.ReportViewer.WinForms.WinViewer.OnStreamReady(Object sender, StreamReadyEventArgs eventArgs)
at Telerik.ReportViewer.WinForms.RenderFileManager.OnStreamReady(StreamReadyEventArgs eventArgs)
at Telerik.ReportViewer.WinForms.RenderFileManager.RenderStream.Telerik.Reporting.Processing.IRenderStream.Finish()
at Telerik.Reporting.ImageRendering.CompositionGdi.SendPhysicalPages()
at Telerik.Reporting.ImageRendering.CompositionBase.SendPhysicalPages(Boolean force)
at Telerik.Reporting.ImageRendering.ImageRendererBase.ProcessPages(CompositionBase composition, RenderingElement renderingReport, Int32 startPage, Int32 endPage, Boolean render)
at Telerik.Reporting.ImageRendering.ImageRendererBase.ProcessPages(Report report, CompositionBase composition, Int32 startPage, Int32 endPage, Boolean render)
at Telerik.Reporting.ImageRendering.ImageRendererBase.RenderPages(Report report, CompositionBase composition)
at Telerik.Reporting.ImageRendering.ImageRendererBase.RenderReport(Report report, Hashtable renderingContext, Hashtable deviceInfo, CreateStream createStreamCallback, EvaluateHeaderFooterExpressions evalHeaderFooterCallback)
*** RenderReport #0 DONE in 00:00:16.7004656 ***
*** ReportProcessor.Render DONE in 00:03:24.9680921 ***
WinViewer> An error has occurred while rendering a report:
System.Runtime.InteropServices.ExternalException: A generic error occurred in GDI+.
at System.Drawing.Imaging.Metafile..ctor(Stream stream)
at Telerik.ReportViewer.WinForms.DrawablePage..ctor(Stream stream)
at Telerik.ReportViewer.WinForms.PageLayout.AddPage(Stream stream)
at Telerik.ReportViewer.WinForms.WinViewer.OnStreamReady(Object sender, StreamReadyEventArgs eventArgs)
at Telerik.ReportViewer.WinForms.RenderFileManager.OnStreamReady(StreamReadyEventArgs eventArgs)
at Telerik.ReportViewer.WinForms.RenderFileManager.RenderStream.Telerik.Reporting.Processing.IRenderStream.Finish()
at Telerik.Reporting.ImageRendering.CompositionGdi.SendPhysicalPages()
at Telerik.Reporting.ImageRendering.CompositionBase.SendPhysicalPages(Boolean force)
at Telerik.Reporting.ImageRendering.ImageRendererBase.ProcessPages(CompositionBase composition, RenderingElement renderingReport, Int32 startPage, Int32 endPage, Boolean render)
at Telerik.Reporting.ImageRendering.ImageRendererBase.ProcessPages(Report report, CompositionBase composition, Int32 startPage, Int32 endPage, Boolean render)
at Telerik.Reporting.ImageRendering.ImageRendererBase.RenderPages(Report report, CompositionBase composition)
at Telerik.Reporting.ImageRendering.ImageRendererBase.RenderReport(Report report, Hashtable renderingContext, Hashtable deviceInfo, CreateStream createStreamCallback, EvaluateHeaderFooterExpressions evalHeaderFooterCallback)
at Telerik.Reporting.ImageRendering.ImageRendererBase.Telerik.Reporting.Processing.IRenderingExtension.Render(Report report, Hashtable renderingContext, Hashtable deviceInfo, CreateStream createStreamCallback, EvaluateHeaderFooterExpressions evalHeaderFooterCallback)
at Telerik.Reporting.Processing.ReportProcessor.Render(IList`1 reports, ExtensionInfo extensionInfo, Hashtable renderingContext, Hashtable deviceInfo, CreateStream createStreamCallback)
at Telerik.Reporting.Processing.ReportProcessor.RenderReport(String format, IReportDocument reportDocument, Hashtable deviceInfo, Hashtable renderingContext, CreateStream createStreamCallback)
at Telerik.ReportViewer.WinForms.RenderingThread.ThreadFunc(Object o)
The thread 0x1828 has exited with code 0 (0x0).
in one of my reports in the page between 85-95 i get "A Generic GDI+ error occured"..
i tried a lot and the source of problem is a picturebox in my report that show the Student pictures.
Student objects loaded with Nhibernate
here is the stack trace from output window:
*** RENDER PAGES STARTED ***
*** RENDER PAGES DONE in 00:00:16.6764322 ***
An error has occurred while rendering the report: System.Runtime.InteropServices.ExternalException: A generic error occurred in GDI+.
at System.Drawing.Imaging.Metafile..ctor(Stream stream)
at Telerik.ReportViewer.WinForms.DrawablePage..ctor(Stream stream)
at Telerik.ReportViewer.WinForms.PageLayout.AddPage(Stream stream)
at Telerik.ReportViewer.WinForms.WinViewer.OnStreamReady(Object sender, StreamReadyEventArgs eventArgs)
at Telerik.ReportViewer.WinForms.RenderFileManager.OnStreamReady(StreamReadyEventArgs eventArgs)
at Telerik.ReportViewer.WinForms.RenderFileManager.RenderStream.Telerik.Reporting.Processing.IRenderStream.Finish()
at Telerik.Reporting.ImageRendering.CompositionGdi.SendPhysicalPages()
at Telerik.Reporting.ImageRendering.CompositionBase.SendPhysicalPages(Boolean force)
at Telerik.Reporting.ImageRendering.ImageRendererBase.ProcessPages(CompositionBase composition, RenderingElement renderingReport, Int32 startPage, Int32 endPage, Boolean render)
at Telerik.Reporting.ImageRendering.ImageRendererBase.ProcessPages(Report report, CompositionBase composition, Int32 startPage, Int32 endPage, Boolean render)
at Telerik.Reporting.ImageRendering.ImageRendererBase.RenderPages(Report report, CompositionBase composition)
at Telerik.Reporting.ImageRendering.ImageRendererBase.RenderReport(Report report, Hashtable renderingContext, Hashtable deviceInfo, CreateStream createStreamCallback, EvaluateHeaderFooterExpressions evalHeaderFooterCallback)
*** RenderReport #0 DONE in 00:00:16.7004656 ***
*** ReportProcessor.Render DONE in 00:03:24.9680921 ***
WinViewer> An error has occurred while rendering a report:
System.Runtime.InteropServices.ExternalException: A generic error occurred in GDI+.
at System.Drawing.Imaging.Metafile..ctor(Stream stream)
at Telerik.ReportViewer.WinForms.DrawablePage..ctor(Stream stream)
at Telerik.ReportViewer.WinForms.PageLayout.AddPage(Stream stream)
at Telerik.ReportViewer.WinForms.WinViewer.OnStreamReady(Object sender, StreamReadyEventArgs eventArgs)
at Telerik.ReportViewer.WinForms.RenderFileManager.OnStreamReady(StreamReadyEventArgs eventArgs)
at Telerik.ReportViewer.WinForms.RenderFileManager.RenderStream.Telerik.Reporting.Processing.IRenderStream.Finish()
at Telerik.Reporting.ImageRendering.CompositionGdi.SendPhysicalPages()
at Telerik.Reporting.ImageRendering.CompositionBase.SendPhysicalPages(Boolean force)
at Telerik.Reporting.ImageRendering.ImageRendererBase.ProcessPages(CompositionBase composition, RenderingElement renderingReport, Int32 startPage, Int32 endPage, Boolean render)
at Telerik.Reporting.ImageRendering.ImageRendererBase.ProcessPages(Report report, CompositionBase composition, Int32 startPage, Int32 endPage, Boolean render)
at Telerik.Reporting.ImageRendering.ImageRendererBase.RenderPages(Report report, CompositionBase composition)
at Telerik.Reporting.ImageRendering.ImageRendererBase.RenderReport(Report report, Hashtable renderingContext, Hashtable deviceInfo, CreateStream createStreamCallback, EvaluateHeaderFooterExpressions evalHeaderFooterCallback)
at Telerik.Reporting.ImageRendering.ImageRendererBase.Telerik.Reporting.Processing.IRenderingExtension.Render(Report report, Hashtable renderingContext, Hashtable deviceInfo, CreateStream createStreamCallback, EvaluateHeaderFooterExpressions evalHeaderFooterCallback)
at Telerik.Reporting.Processing.ReportProcessor.Render(IList`1 reports, ExtensionInfo extensionInfo, Hashtable renderingContext, Hashtable deviceInfo, CreateStream createStreamCallback)
at Telerik.Reporting.Processing.ReportProcessor.RenderReport(String format, IReportDocument reportDocument, Hashtable deviceInfo, Hashtable renderingContext, CreateStream createStreamCallback)
at Telerik.ReportViewer.WinForms.RenderingThread.ThreadFunc(Object o)
The thread 0x1828 has exited with code 0 (0x0).