(Using 2011.2 with the latest patches. Exporting to Excel (either 2003, or 2007 works.)
I have a report displaying beautifully in the Silverlight report viewer. Everything seems fine, until I try to export it to PDF. The status window shows it getting to almost 100%, and then it fails with the following:
[Big red X] An error occurred while exporting the report.
Infragistics.Reports.Engine.EngineException: An error occurred while exporting the report. ---> System.NullReferenceException: Object reference not set to an instance of an object. at Infragistics.Documents.Reports.Graphics.VirtualGraphics.set_Font(Font value) at Infragistics.Documents.Reports.Report.Text.Text.ComposeUnits(Text text, Composition composition, IGraphics graphics) at Infragistics.Documents.Reports.Report.Text.Text.Measure(Composition composition, IGraphics graphics, MeasureMode mode) at Infragistics.Documents.Reports.Report.Group.Measure(Composition composition, IGraphics graphics, MeasureMode mode) at Infragistics.Documents.Reports.Report.Site.Measure(Composition composition, IGraphics graphics, MeasureMode mode) at Infragistics.Documents.Reports.Report.Site.Measure(Composition composition, IGraphics graphics, MeasureMode mode) at Infragistics.Documents.Reports.Report.Section.Section.Measure(Projection projection, IGraphics graphics) at Infragistics.Documents.Reports.Report.Report.Measure() at Infragistics.Documents.Reports.Report.Report.Publish(Stream stream, FileFormat format) at Infragistics.Reports.Pdf.PdfDocument.Export(Stream targetStream) at Infragistics.Reports.Engine.ReportExporter.ExportInternal(IReportItemVisitor reportItemVisitor, IDocument document, Stream targetStream, ExportCallback callback, IReportItemRendererFactory factory, IReportItemVisitorCancelationProvider cancelationProvider) --- End of inner exception stack trace ---Exception Message:Object reference not set to an instance of an object.Stack Trace: at Infragistics.Documents.Reports.Graphics.VirtualGraphics.set_Font(Font value) at Infragistics.Documents.Reports.Report.Text.Text.ComposeUnits(Text text, Composition composition, IGraphics graphics) at Infragistics.Documents.Reports.Report.Text.Text.Measure(Composition composition, IGraphics graphics, MeasureMode mode) at Infragistics.Documents.Reports.Report.Group.Measure(Composition composition, IGraphics graphics, MeasureMode mode) at Infragistics.Documents.Reports.Report.Site.Measure(Composition composition, IGraphics graphics, MeasureMode mode) at Infragistics.Documents.Reports.Report.Site.Measure(Composition composition, IGraphics graphics, MeasureMode mode) at Infragistics.Documents.Reports.Report.Section.Section.Measure(Projection projection, IGraphics graphics) at Infragistics.Documents.Reports.Report.Report.Measure() at Infragistics.Documents.Reports.Report.Report.Publish(Stream stream, FileFormat format) at Infragistics.Reports.Pdf.PdfDocument.Export(Stream targetStream) at Infragistics.Reports.Engine.ReportExporter.ExportInternal(IReportItemVisitor reportItemVisitor, IDocument document, Stream targetStream, ExportCallback callback, IReportItemRendererFactory factory, IReportItemVisitorCancelationProvider cancelationProvider)
As mentioned, the same report exports correctly to Excel. Can you give me any hints about what to look at in my report definition?
Thanks,
Mike
P.S. When is 2012.1 expected?
Hello Mike,
We expect our new version 12.1 to be available within a couple of days, so i can suggest you check our website for furhter information on this.
furhtermore I have been looking through your questions still the behavior that you described sounds very strange and I am not able to reproduce it on my side. Would you please provide me with a test project where the issue is representable so I can continue my investigation on this matter.
Thanks in advance.
Leo had sent me a pre-release of 12.1 (to test something else: being able to use a stream as a source for the report definition in the viewer), and the crash I mentioned above when exporting to PDF does not happen with the 12.1 pre-release.
I think we can ignore this.