Hello everyone.
I seem to have run across a bug in Crystal Reports for Visual Studio .NET 2003 relating to exporting Crystal Reports containing images in subreports.
I have displayed many bitmaps from my database successfully on other pages, but I am getting errors when I display the bitmaps within a linked sub-report and export it to a pdf.
The error returned is:
Error in File C:\DOCUME~1\GBS01\ASPNET\LOCALS~1\Temp\temp_c2b9e106-4c7b-4ffe-adaa-97fc6e2c088e.rpt: Error detected by export DLL:
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: CrystalDecisions.CrystalReports.Engine.ExportException: Error in File C:\DOCUME~1\GBS01\ASPNET\LOCALS~1\Temp\temp_c2b9e106-4c7b-4ffe-adaa-97fc6e2c088e.rpt: Error detected by export DLL:
Source Error:
Line 132: MemoryStream oStream; // using System.IO
Line 133:
Line 134: oStream = (MemoryStream)
Line 135: oRpt.ExportToStream(
Line 136: CrystalDecisions.Shared.ExportFormatType.PortableDocFormat);
I have done some searches and it seems that other have run into the same problem, but I have not found a single account of anyone actually fixing the problem.
Here is some specific information about how and when the error occurs:
If I remove the image from the report, and do nothing else, the report works.
I can display all of the other data within the record, other than the bitmap, so the database is linked correctly.
If I create the same report as a stand-alone report, it works.
If I go into the "Subreport links" screen and uncheck "Select data in subreport based on field: UserTable.UT_ID" the report works and I can see the images, however, the report is no longer linked correctly.
If I display the report as HTML in the Crystal Report viewer, it works, but some of the bitmaps are missing (placeholders with a "X" in the top corner". I suspect this is related to the same problem.
So in conclusion, I can say that there is problem relating to displaying bitmaps in a sub-report that has been linked on a field.
Does anyone have any idea what is wrong, or any suggestions on what I should do? I haven't been able to find any updates for this version of Crystal Reports (Crystal Reports for Visual Studio .NET 2003). Do you know if such updates exist?
Thanks.
I seem to have run across a bug in Crystal Reports for Visual Studio .NET 2003 relating to exporting Crystal Reports containing images in subreports.
I have displayed many bitmaps from my database successfully on other pages, but I am getting errors when I display the bitmaps within a linked sub-report and export it to a pdf.
The error returned is:
Error in File C:\DOCUME~1\GBS01\ASPNET\LOCALS~1\Temp\temp_c2b9e106-4c7b-4ffe-adaa-97fc6e2c088e.rpt: Error detected by export DLL:
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: CrystalDecisions.CrystalReports.Engine.ExportException: Error in File C:\DOCUME~1\GBS01\ASPNET\LOCALS~1\Temp\temp_c2b9e106-4c7b-4ffe-adaa-97fc6e2c088e.rpt: Error detected by export DLL:
Source Error:
Line 132: MemoryStream oStream; // using System.IO
Line 133:
Line 134: oStream = (MemoryStream)
Line 135: oRpt.ExportToStream(
Line 136: CrystalDecisions.Shared.ExportFormatType.PortableDocFormat);
I have done some searches and it seems that other have run into the same problem, but I have not found a single account of anyone actually fixing the problem.
Here is some specific information about how and when the error occurs:
If I remove the image from the report, and do nothing else, the report works.
I can display all of the other data within the record, other than the bitmap, so the database is linked correctly.
If I create the same report as a stand-alone report, it works.
If I go into the "Subreport links" screen and uncheck "Select data in subreport based on field: UserTable.UT_ID" the report works and I can see the images, however, the report is no longer linked correctly.
If I display the report as HTML in the Crystal Report viewer, it works, but some of the bitmaps are missing (placeholders with a "X" in the top corner". I suspect this is related to the same problem.
So in conclusion, I can say that there is problem relating to displaying bitmaps in a sub-report that has been linked on a field.
Does anyone have any idea what is wrong, or any suggestions on what I should do? I haven't been able to find any updates for this version of Crystal Reports (Crystal Reports for Visual Studio .NET 2003). Do you know if such updates exist?
Thanks.