SAP Knowledge Base Article - Public

2796627 - Using images from DB blob fields in a RPTR generates a error: Load report failed: The Report Application Server failed

Symptom

We plan to configure RPT crystal report files and then export them to the RPTR format (read-only). In our integration of the viewer - using the Crystal Engine/Runtime object model - we will set values to report parameters and then let the runtime load data based on this. Now, we want to display images in such an RPTR report. We have the image data source stored in database in BLOB fields.

I have seen that using BLOB as image source works when it’s used in a RPT file (drag/drop blob from field explorer in the report), the template loads without errors and the image is displayed.

Problem: After exporting such a RTP template to RPTR, this doesn’t work anymore as the template can’t be loaded. When calling CrystalDecisions.CrystalReports.Engine.ReportDocument -> Load method, we get CrystalDecisions.Shared.CrystalReportsException: Load report failed. ---> System.Runtime.InteropServices.COMException: The Report Application Server failed at CrystalDecisions.ReportAppServer.ClientDoc.ReportClientDocumentClass.Open(Object& DocumentPath, Int32 Options) at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.Open(Object& DocumentPath, Int32 Options) at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened() --- End of inner exception stack trace --- at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened() at CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename, OpenReportMethod openMethod, Int16 parentJob) at CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename, OpenReportMethod openMethod)

Environment

Crystal Reports Developer, for Visual Studio

Reproducing the Issue

Please provide step-by-step instructions on how to reproduce your issue:

  1. Using Crystal Designer - create RPT report, configure DB source, select image field from DB field to be added to report.
  2. Confirm with preview of report in the designer that the DB image field loads in the generated report preview.
  3. Export this RPT to RPTR - (check save data with report - although has no effect in this case).
  4. Create a CrystalDecisions.CrystalReports.Engine.ReportDocument in a .net  desktop aplication. Call the Load method providing the path to the exported RPTR. -> Exception is thrown " CrystalReportsException: Load report failed "       Please grant permission to connect to your system environment and perform the above steps, if required, during the analysis of the case? Not at the moment. If needed something can be set up.   Please provide further reproduction guidance to the support engineer below, if needed:  

I noticed that the RPTR loads without error when using a file path as source for the image field in the report.

Resolution

This issue has been escalated to our developers for a solution for SP 26

Keywords

rptr, CR for VS, Load report failed: The Report Application Server failed , KBA , BI-DEV-NET , BI Software Development Kits (SDKs) - .NET or Other , Problem

Product

SAP Crystal Reports 2011 ; SAP Crystal Reports 2013 ; SAP Crystal Reports, developer version for Microsoft Visual Studio