Page 1 of 1

A generic error occurred in GDI+

Posted: Thu Apr 24, 2014 6:05 am
by ilogs
Good morning,

when I execute my report I am getting the following exeption: An exception of type 'System.Runtime.InteropServices.ExternalException' occurred in System.Drawing.dll--> A generic error occurred in GDI+

I have 10 checkboxes. When I reduce them to 5 it works.
Do you have any idea of this problem?

Here's the stacktrace:

at System.Drawing.Imaging.Metafile..ctor(IntPtr referenceHdc, EmfType emfType, String description)
at Stimulsoft.Report.Components.StiCheckBox.GetMetafile()
at Stimulsoft.Report.Export.StiPdfExportService.RenderCheckbox(StiPdfData pp)
at Stimulsoft.Report.Export.StiPdfExportService.ExportPdf1(StiReport report, Stream stream, StiPdfExportSettings settings)
at Stimulsoft.Report.Export.StiPdfExportService.ExportPdf(StiReport report, Stream stream, StiPdfExportSettings settings)
at Stimulsoft.Report.Web.StiReportResponse.ResponseAsPdf(Page page, StiReport report, Boolean openDialog, StiPdfExportSettings settings)
at Stimulsoft.Report.Web.StiReportResponse.ResponseAsPdf(Page page, StiReport report, StiPagesRange pageRange, Single imageQuality, Single imageResolution, Boolean embeddedFonts, Boolean standardPdfFonts, Boolean exportRtfTextAsImage, Boolean openDialog, String passwordUser, String passwordOwner, StiUserAccessPrivileges userAccessPrivileges, StiPdfEncryptionKeyLength keyLength, Boolean useUnicode)
at Stimulsoft.Report.Web.StiReportResponse.ResponseAsPdf(Page page, StiReport report, StiPagesRange pageRange, Single imageQuality, Single imageResolution, Boolean embeddedFonts, Boolean standardPdfFonts, Boolean exportRtfTextAsImage, Boolean openDialog, String passwordUser, String passwordOwner, StiUserAccessPrivileges userAccessPrivileges, StiPdfEncryptionKeyLength keyLength)
at Stimulsoft.Report.Web.StiReportResponse.ResponseAsPdf(Page page, StiReport report, StiPagesRange pageRange, Single imageQuality, Single imageResolution, Boolean embeddedFont, Boolean standardPdfFonts, Boolean openDialog, String passwordUser, String passwordOwner, StiUserAccessPrivileges userAccessPrivileges)
at Stimulsoft.Report.Web.StiReportResponse.ResponseAsPdf(Page page, StiReport report, StiPagesRange pageRange, Single imageQuality, Single imageResolution, Boolean embeddedFonts, Boolean standardPdfFonts, Boolean openDialog)
at Stimulsoft.Report.Web.StiReportResponse.ResponseAsPdf(Page page, StiReport report, Boolean openDialog)

Re: A generic error occurred in GDI+

Posted: Fri Apr 25, 2014 11:37 am
by HighAley
Hello.

Could you specify which version do you use?
Could you send us a sample project which reproduces the issue?

Thank you.