Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
795
Exception when exporting report to PDF
posted

Hi,

 

I receive the following exception when I try to export the report to PDF:

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)

Am I missing something?

FYI:

Export the report to Excel works fine!

Using Silverlight 11.2.20112.1068

Best regards,

Ingo

Parents Reply Children
No Data