SAP Knowledge Base Article - Public

1920889 - Error: Failed to export the report. Not enough memory for operation is thrown by a .net application when trying to print images using Crystal Reports Developer for Visual Studio

Symptom

Error: Failed to export the report. Not enough memory for operation is thrown by a .net application when trying to print images using Crystal Reports for VS2010

Following is the stack trace:

An error has occurred in page /Report.aspx System.Runtime.InteropServices.COMException (0x80041004): Memory full. Failed to export the report. Not enough memory for operation. at CrystalDecisions.ReportAppServer.Controllers.ReportSourceClass.Export(ExportOptions pExportOptions, RequestContext pRequestContext) at

Environment

  • SAP Crystal Reports for Visual Studio 2010 SP5
  • Visual Studio 2008
  • MS SQL Server 2008

Reproducing the Issue

  1. Create a crystal report having 2 images in the report having resolution of 100x100 pixels
  2. Create a .net application from Visual Studio 2010
  3. Create a simple code to print this report
  4. When the application executes and tries to print this report the error occurs.

Cause

The issue has been identified as a bug and logged under Problem Report ID ADAPT01691849

Resolution

This issue has been fixed in Service Pack 7 for Crystal Reports Developer for Visual Studio

Keywords

export .net, cr4vs2010, crvs2010, print images, .net application, memory error .net , KBA , BI-DEV-NET , BI Software Development Kits (SDKs) - .NET or Other , Problem

Product

SAP Crystal Reports, developer version for Microsoft Visual Studio