SAP Knowledge Base Article - Public

1544649 - Crystal reports appear blank when accessed from custom .NET application

Symptom

Crystal reports do not show data when a custom .NET application is run. The report appears to be blank.

Environment

  • Visual Studio 2008
  • Crystal Reports 10.5
  • Web application

Reproducing the Issue

  • Run the application to display the Crystal reports.

Cause

  • Reports objects are not closed and disposed of in memory.

Resolution

  • Use the following code in the unload event of the page or the code can also be written in a button press event so that the disposing is ensured manually.
boReportDocument.Close(); 
boReportDocument.Dispose();
GC.Collect();

Note: boReportDocument is the ReportDocument object.

Keywords

reports appear blank, blank, no data, crystal reports, .NET SDK , KBA , BI-DEV-NET , BI Software Development Kits (SDKs) - .NET or Other , Problem

Product

SAP Crystal Reports XI