Skip to Content
0
Former Member
May 03, 2013 at 10:22 PM

64 bit version of CR

426 Views

The setup:

I have a 32 bit application that is developed using VS2010 on Win 7 64 bit machine. The CR DLLs in my project are from C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win32_x86\dotnet

I create an installer for this application using the VS 2010 Deployment project that lists CR as a prerequisite. All works great on 32 bit installs (xp and win7).

The problem:

Appropriately, when my application is installed on a 64 bit machine, of course the 64 Bit CR is installed. The problem arises when I try to run any of my reports - my application crashes.

Workaround:

If after all installs are complete (.Net framework, 64 bit CR, and my app) I then manually install 32 bit CR, all's good.

My suspicion about why this doesn't work without the last step is that the registry keys on the CR 64 bit install are as follows:

HKEY_LOCAL_MACHINE\SOFTWARE\SAP Crystal Reports for .NET Framework 4.0\CrystalReports

Common Files --> C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win64_x64\

Same as on my development machine, there are no Crystal Decions DLLs in that folder.

There's nothing special about my project so I suspect others have had and resolved the same issue. Could someone please advise on how to fix this issue so that I don't have to have both versions installed? Are there 64 Bit CR DLLs out there I should be using in my project and doing a separate compile for this platform? Is this just a project configuration issue?

  • I have tried both compiling for just x86 and Any Platform
  • I have tried omitting the 64 bit CR from the deployment project, but that caused other errors on install.

I'd also really appreciate if anyone could also point me at any good articles on 64 bit development with Crystal Reports.

Regards,

Anna