Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Bug when displaying bitmap in subreport?

Status
Not open for further replies.

PKFGimpy

Programmer
Nov 23, 2005
9
CA
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.
 
One more piece of information to add:

I can successfully export my report to a word document.

I also ran the CR9 Service Pack 5 installer, and it made no difference.
 
And some more info:

I ran the Crystal Reports for VS.NET Service Pack 1 and 2 updates, as well as the hotfix, and still no affect.
 
Surely someone else has encountered this issue. It seems like such a simple task that I'm trying to accomplish, and I'm suprised that the issue hasn't been addressed in any of the CR service packs and hot fixes.

Anyone have any suggestions?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top