Symptom
- 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.
Environment
- 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 =
ExportOptions.CreateDiskFileDestinationOptions();
exportOpts.ExportFormatType = ExportFormatType.Xml;
exportOpts.ExportDestinationType =
ExportDestinationType.DiskFile;
diskOpts.DiskFileName = fileName;
exportOpts.ExportDestinationOptions = diskOpts;
Report.Export(exportOpts);
Note: This issue can be reproduced using ODBC as well.
Cause
- This issue has been identified and logged under Problem ID ADAPT01320923.
Resolution
- There is no workaround & solution to this problem.
See Also
Keywords
invalid pointer, export fails, xml, ADAPT01320923, 01320923, 1320923 , KBA , BI-DEV-NET , BI Software Development Kits (SDKs) - .NET or Other , Bug Filed