A generic error occurred in GDI+

Stimulsoft Reports.WEB discussion
Post Reply
ilogs
Posts: 1
Joined: Thu Apr 24, 2014 5:36 am

A generic error occurred in GDI+

Post 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)
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: A generic error occurred in GDI+

Post by HighAley »

Hello.

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

Thank you.
Post Reply