cancel
Showing results for 
Search instead for 
Did you mean: 

Export from CrystalReportViewer either hangs or gives OutOfMemoryException

Former Member
0 Kudos

I have a Visual Studio 2008 project using .NET 2.0 and I have referenced Crystal Reports version 10.2.3600.0. I have a report that has subreports, all text fields, no objects, no special fonts that gives System.OutOfMemoryException from the Crystal Report Windows Forms Viewer. I also get an error when previewing the report from within Visual Studio IDE and exporting from there. The report is only 2 pages long when run from a production database. Any ideas?

Accepted Solutions (1)

Accepted Solutions (1)

former_member183750
Active Contributor
0 Kudos

There is something very wrong here.

Visual Studio 2008 bundles CR version 10.5. Only version 10.5 and 12.x will work with .NET 2008. You should not be working with version 10.2 in .NET 2008.

Ludek

Former Member
0 Kudos

The project was created in Visual Studio 2005, when migrating it to VS 2008 we maintained the .NET 2.0 framework as the version framework running the app. We have these same problems in sites where the app was designed and installed from VS 2005 as well, so it is not a problem with VS 2008 running the older dlls. The reason i had to include the 10.2.3600.0 version as references in the app was because we did not want to have to go to every work station (100s) in 60+ client sites throughout the state and uninstall/reinstall the redist packages to upgrade to Crystal Reports for VS 2008. I have made no changes to the report since it was first installed 2 years ago. However, clients have decided they want to use the export functionality now and we just noticed that we have a problem.

former_member183750
Active Contributor
0 Kudos

Until you have a supported system with either .NET 2005 and CR 10.2, or .NET 2008 and CR 10.5 with no other confusions in the works, it does not make any sense to me to be working on this issue. Deployed systems do not help either as we want to be able to work this / duplicate this on the correctly configured development system first.

But, let's see if somebody else wants to take a chance at somehow resolving this as is...

Ludek

Former Member
0 Kudos

I have a workable configuration as you requested. I apologize for not being clear, but I meant to say that I have an earlier project solution for the same app in VS2005 that is failing in the same way.

former_member183750
Active Contributor
0 Kudos

As you are using CR 10.2, ensure you have the latest Service Pack from here:

https://smpdl.sap-ag.de/~sapidp/012002523100006007872008E/crvs05sp1.exe

If that does not help, see if our sample apps cause the same issue. Samples can be downloaded from here:

https://smpdl.sap-ag.de/~sapidp/012002523100006252822008E/net_win_smpl.exe

I recommend trying the sample app vbnet_win_simplepreview. the web equivalent is here:

https://smpdl.sap-ag.de/~sapidp/012002523100006252812008E/net_web_smpl.exe

Ludek

Former Member
0 Kudos

I downloaded and installed the latest service pack. I downloaded and ran the simple preview and the accessing subreports samples and both successfully exported to pdf. I even converted the Xtreme database to sqlServer database and added DataSet to project and updated the datasource to that dataset. I used the strongly typed report for report source. Which is the way its done in my failing reports. Is there a way to upload the report for you to look at there? Because it fails while in preview mode from designer as well when trying to export.

former_member183750
Active Contributor
0 Kudos

There is no way to upload files to this forum. If you want to pursue that avenue, you'll have to obtain a singe case support contract from here:

http://store.businessobjects.com/store/bobjamer/DisplayProductByTypePage&parentCategoryID=&categoryI...

From your description I'm a bit hazy on how the sample apps were run, but you can try to use the vbnet_win_adodotnet app. Wire in your report and your dataset and see if that works. If it does, it's not a report issue, it's a code issue and you'll have to trace through that.

Ludek

Answers (0)