Error: A generic error occurred in GDI+.
Posted: Thu May 26, 2011 4:23 am
Hello,
When I try to preview of print a big report under windows 7 or windows 2008 I get the following error (after Report.Load(reportname));
Exception.Message:
A generic error occurred in GDI+.
There is no problem with windows 2003 or windows XP.
=============================
Exception.StackTrace:
at System.Drawing.Image.Save(Stream stream, ImageCodecInfo encoder, EncoderParameters encoderParams)
at System.Drawing.Image.Save(MemoryStream stream)
at System.Drawing.ImageConverter.ConvertTo(ITypeDescriptorContext context, CultureInfo culture, Object value, Type destinationType)
at System.ComponentModel.TypeConverter.ConvertTo(Object value, Type destinationType)
at Stimulsoft.Base.Drawing.StiImageConverter.ImageToBytes(Image image)
at Stimulsoft.Base.Drawing.StiImageConverter.ImageToString(Image image)
at Stimulsoft.Report.CodeDom.StiCodeDomSerializator.AddImage(String parent, String name, StiPropertyInfo prop)
at Stimulsoft.Report.CodeDom.StiCodeDomSerializator.SerializeProps(StiPropertyInfoCollection props, Boolean isList, String parentName, String referenceName)
at Stimulsoft.Report.CodeDom.StiCodeDomSerializator.SerializeProps(StiPropertyInfoCollection props, Boolean isList, String parentName, String referenceName)
at Stimulsoft.Report.CodeDom.StiCodeDomSerializator.SerializeProps(StiPropertyInfoCollection props, Boolean isList, String parentName, String referenceName)
at Stimulsoft.Report.CodeDom.StiCodeDomSerializator.SerializeProps(StiPropertyInfoCollection props, Boolean isList, String parentName, String referenceName)
at Stimulsoft.Report.CodeDom.StiCodeDomSerializator.SerializeProps(StiPropertyInfoCollection props, Boolean isList, String parentName, String referenceName)
at Stimulsoft.Report.CodeDom.StiCodeDomSerializator.SerializeProps(StiPropertyInfoCollection props, Boolean isList, String parentName, String referenceName)
at Stimulsoft.Report.CodeDom.StiCodeDomSerializator.SerializeProps(StiPropertyInfoCollection props, Boolean isList, String parentName, String referenceName)
at Stimulsoft.Report.CodeDom.StiCodeDomSerializator.Serialize(StiReport report, String name, StiLanguage language, Boolean serializeData, Boolean saveForInheritedReports, Object standaloneReportType)
at Stimulsoft.Report.StiReport.ScriptUnpack(Boolean saveForInheritedReports)
at Stimulsoft.Report.StiReport.ScriptUnpack()
at Stimulsoft.Report.SaveLoad.StiXmlReportSLService.Load(StiReport report, Stream stream)
at Stimulsoft.Report.StiReport.Load(StiReportSLService service, Stream stream)
at Stimulsoft.Report.StiReport.Load(Stream stream)
at Stimulsoft.Report.StiReport.Load(String path)
at StimulReport2010_01.StimulReport.GetCompiledVersion(String reportDllName, String reportFileName, StiReport& report, String& errmessage) in E:\Source\2005\Unifreight\StimulReport\StimulReport2010_01\StimulReport.cs:line 698
Thanks.
When I try to preview of print a big report under windows 7 or windows 2008 I get the following error (after Report.Load(reportname));
Exception.Message:
A generic error occurred in GDI+.
There is no problem with windows 2003 or windows XP.
=============================
Exception.StackTrace:
at System.Drawing.Image.Save(Stream stream, ImageCodecInfo encoder, EncoderParameters encoderParams)
at System.Drawing.Image.Save(MemoryStream stream)
at System.Drawing.ImageConverter.ConvertTo(ITypeDescriptorContext context, CultureInfo culture, Object value, Type destinationType)
at System.ComponentModel.TypeConverter.ConvertTo(Object value, Type destinationType)
at Stimulsoft.Base.Drawing.StiImageConverter.ImageToBytes(Image image)
at Stimulsoft.Base.Drawing.StiImageConverter.ImageToString(Image image)
at Stimulsoft.Report.CodeDom.StiCodeDomSerializator.AddImage(String parent, String name, StiPropertyInfo prop)
at Stimulsoft.Report.CodeDom.StiCodeDomSerializator.SerializeProps(StiPropertyInfoCollection props, Boolean isList, String parentName, String referenceName)
at Stimulsoft.Report.CodeDom.StiCodeDomSerializator.SerializeProps(StiPropertyInfoCollection props, Boolean isList, String parentName, String referenceName)
at Stimulsoft.Report.CodeDom.StiCodeDomSerializator.SerializeProps(StiPropertyInfoCollection props, Boolean isList, String parentName, String referenceName)
at Stimulsoft.Report.CodeDom.StiCodeDomSerializator.SerializeProps(StiPropertyInfoCollection props, Boolean isList, String parentName, String referenceName)
at Stimulsoft.Report.CodeDom.StiCodeDomSerializator.SerializeProps(StiPropertyInfoCollection props, Boolean isList, String parentName, String referenceName)
at Stimulsoft.Report.CodeDom.StiCodeDomSerializator.SerializeProps(StiPropertyInfoCollection props, Boolean isList, String parentName, String referenceName)
at Stimulsoft.Report.CodeDom.StiCodeDomSerializator.SerializeProps(StiPropertyInfoCollection props, Boolean isList, String parentName, String referenceName)
at Stimulsoft.Report.CodeDom.StiCodeDomSerializator.Serialize(StiReport report, String name, StiLanguage language, Boolean serializeData, Boolean saveForInheritedReports, Object standaloneReportType)
at Stimulsoft.Report.StiReport.ScriptUnpack(Boolean saveForInheritedReports)
at Stimulsoft.Report.StiReport.ScriptUnpack()
at Stimulsoft.Report.SaveLoad.StiXmlReportSLService.Load(StiReport report, Stream stream)
at Stimulsoft.Report.StiReport.Load(StiReportSLService service, Stream stream)
at Stimulsoft.Report.StiReport.Load(Stream stream)
at Stimulsoft.Report.StiReport.Load(String path)
at StimulReport2010_01.StimulReport.GetCompiledVersion(String reportDllName, String reportFileName, StiReport& report, String& errmessage) in E:\Source\2005\Unifreight\StimulReport\StimulReport2010_01\StimulReport.cs:line 698
Thanks.