recently we switched from Stimulsoft version 2016.3.0.0 to version 2018.1.6.0. Since then we have some problems with PDF exporting Reports. We are using StiReport.ExportDocument() method.
We have nor changed our code for Export neither have we changed the Reports. We use the following method call:
Code: Select all
listReport.ExportDocument(StiExportFormat.Pdf, fileName, new StiPdfExportSettings {ImageQuality = 100.0f, ImageResolution = 300.0f, })
Code: Select all
<InnerException ExceptionType="System.NullReferenceException">
<Number>0</Number>
<Message>Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.</Message>
<Source>Stimulsoft.Report</Source>
<TargetSite>Stimulsoft.Report.Components.StiPagesCollection Divide(Stimulsoft.Report.Components.StiPagesCollection, Stimulsoft.Report.Export.StiExportService)</TargetSite>
<Class>Stimulsoft.Report.Export.StiSegmentPagesDivider</Class>
<Assembly>Stimulsoft.Report, Version=2018.1.6.0, Culture=neutral, PublicKeyToken=ebe6666cba19647a</Assembly>
<Method>Divide</Method>
<StackTrace>
<StackTraceElements Count="1">
<StackTraceElement Number="1"> bei Stimulsoft.Report.Export.StiSegmentPagesDivider.Divide(StiPagesCollection pages, StiExportService service)
bei Stimulsoft.Report.Export.StiPdfExportService.ExportPdf1(StiReport report, Stream stream, StiPdfExportSettings settings)
bei Stimulsoft.Report.Export.StiPdfExportService.ExportPdf(StiReport report, Stream stream, StiPdfExportSettings settings)
bei Stimulsoft.Report.StiReport.ExportDocument(StiExportFormat exportFormat, StiExportService exportService, Stream stream, StiExportSettings settings)
bei Stimulsoft.Report.StiReport.ExportDocument(StiExportFormat exportFormat, String file, StiExportSettings settings)
Thanks and Kind regards
Thorsten Pontow