I have a Flexcel report that needs to include images that are loaded from a bmp file. If there isn't a bitmap, it shows an image loaded from a PNG file instead. This works fine on my dev machine but on the deployment systems it is running on Windows server in IIS. And while a report with just the PNGs is fine, accessing the bitmaps causes a GDI+ failure. Is there an operation I can do on the loaded bitmap that will stop FlexCel needing to do whatever it is doing with GDI+?
System.Runtime.InteropServices.ExternalException (0x80004005): A generic error occurred in GDI+.
at System.Drawing.Image.Save(Stream stream, ImageCodecInfo encoder, EncoderParameters encoderParams)
at System.Drawing.Image.Save(Stream stream, ImageFormat format)
at Abeta.ManagementReports.Flex.ReportPrimary.get_DetailImage()
at lambda_method(Closure , ReportPrimary )
at FlexCel.Report.TLinqFieldDefinitions`1.GetValue(T obj, Int32 column)
at FlexCel.Report.TLinqDataTableState`1.GetValue(Int32 column)
at FlexCel.Report.PosDouble.Decode(Int32 RequestCountry)
(not sure if the stack is good, as it includes CreateWikiPage further down...)