Error Rendering RTF to Image
Posted: Fri Aug 04, 2017 4:37 pm
Using the latest 2017.1 version, we get an exception if we try to render an RTF (even a blank one) to an image. We are calling StiReport.ExportDocument and the exception happens down in Window's System.Drawing.Graphics.DrawImage. Any ideas?
Parameter is not valid.
at System.Drawing.Image.get_RawFormat() at System.Drawing.Graphics.DrawImage(Image image, Rectangle destRect, Rectangle srcRect, GraphicsUnit srcUnit) at Stimulsoft.Report.Painters.StiTableCellRichTextGdiPainter.GetImage(StiComponent component, Single& zoom, StiExportFormat format) at Stimulsoft.Report.Components.StiRichText.GetImage(Single& zoom, StiExportFormat format) at Stimulsoft.Report.Export.StiExcel2007ExportService.WriteSheet(Int32 indexSheet, StiPage page) at Stimulsoft.Report.Export.StiExcel2007ExportService.ExportExcel(StiReport report, Stream stream, StiExcelExportSettings settings) at Stimulsoft.Report.StiReport.ExportDocument(StiExportFormat exportFormat, StiExportService exportService, Stream stream, StiExportSettings settings) at Stimulsoft.Report.StiReport.ExportDocument(StiExportFormat exportFormat, String file, StiExportSettings settings) at
Parameter is not valid.
at System.Drawing.Image.get_RawFormat() at System.Drawing.Graphics.DrawImage(Image image, Rectangle destRect, Rectangle srcRect, GraphicsUnit srcUnit) at Stimulsoft.Report.Painters.StiTableCellRichTextGdiPainter.GetImage(StiComponent component, Single& zoom, StiExportFormat format) at Stimulsoft.Report.Components.StiRichText.GetImage(Single& zoom, StiExportFormat format) at Stimulsoft.Report.Export.StiExcel2007ExportService.WriteSheet(Int32 indexSheet, StiPage page) at Stimulsoft.Report.Export.StiExcel2007ExportService.ExportExcel(StiReport report, Stream stream, StiExcelExportSettings settings) at Stimulsoft.Report.StiReport.ExportDocument(StiExportFormat exportFormat, StiExportService exportService, Stream stream, StiExportSettings settings) at Stimulsoft.Report.StiReport.ExportDocument(StiExportFormat exportFormat, String file, StiExportSettings settings) at