SAP Knowledge Base Article - Public

1544538 - When ReportDocument.Export() is used to create an XML export of a report, the Crystal Reports .NET API is failing with an "Invalid Pointer" exception.


  •  When ReportDocument.Export() is used to create an XML export of a report, the Crystal Reports .NET API is failing with an "Invalid Pointer" exception

Error at :
CrystalDecisions.ReportAppServer.ConvertDotNetToErom.ThrowDotNetException(Exception e)
at CrystalDecisions.ReportSource.EromReportSourceBase.ExportToStream
(ExportRequestContext reqContext)
at CrystalDecisions.CrystalReports.Engine.FormatEngine.ExportToStream(ExportRequestContext reqContext)
at CrystalDecisions.CrystalReports.Engine.FormatEngine.Export
(ExportRequestContext reqContext)
at CrystalDecisions.CrystalReports.Engine.ReportDocument.Export
(ExportOptions options)

  • Using the Crystal reports designer, the export is successful & independent of the amount of data.


  • Crystal Reports 2008 
  • Visual Studio 2005
  • Windows XP

Reproducing the Issue

  • Run the report that uses ADO.NET XML in a Visual Studio .NET application
  • Use the viewer export button to export to XML
  • Or, use the following code:
       ExportOptions exportOpts = new ExportOptions();
        DiskFileDestinationOptions diskOpts =
        exportOpts.ExportFormatType = ExportFormatType.Xml;
        exportOpts.ExportDestinationType =
        diskOpts.DiskFileName = fileName;
        exportOpts.ExportDestinationOptions = diskOpts;

Note: This issue can be reproduced using ODBC as well.


  • This issue has been identified and logged under Problem ID ADAPT01320923.


  • There is no workaround & solution to this problem.

See Also


invalid pointer,  export fails, xml, ADAPT01320923, 01320923, 1320923 , KBA , BI-DEV-NET , BI Software Development Kits (SDKs) - .NET or Other , Bug Filed


Crystal Reports 2008 V1