cancel
Showing results for 
Search instead for 
Did you mean: 

CrystalRuntime.Application on PHP application

Former Member
0 Kudos

Hi,

We have some problems to use the COM class 'CrystalRuntime.Application' with our PHP homemade application.

We always got the following message

Fatal error: Uncaught exception 'com_exception' with message 'Failed to create COM object `CrystalRuntime.Application'


Since we migrate on a 64 bits Windows, we are unable to export report via PHP.

Someone can help us with this situation ?

Thanks

Accepted Solutions (1)

Accepted Solutions (1)

former_member183750
Active Contributor
0 Kudos

What version of Crystal Reports are you using? Please be precise - look in the designer - Help | About.

Oh, and what OS?

- Ludek

Senior Support Engineer AGS Product Support, Global Support Center Canada

Follow us on Twitter

Former Member
0 Kudos

I use Crystal 2008 (12.6.0.1596) on Windows 7 Professional 64 bits.

former_member183750
Active Contributor
0 Kudos

The problem is that you are trying to use a retired technology that you are not licensed to use. More specifically, the Report Designer Component (RDC) that used craxdrt.dll, craxDDrt.dll and crviewer.dll. Note that CR 2008 does not install craxdrt.dll and you are not licensed to use craxddrt.dll (no way to get a license).

Last version to support the RDC was 11.5 (XI R2). Thus your options;

1) Use CR XI R2.

2) Use the CR SDK for .NET

3) Use the CR SDK for Java (Eclipse)

- Ludek

Senior Support Engineer AGS Product Support, Global Support Center Canada

Follow us on Twitter

Former Member
0 Kudos

From what I recall we ran into a similar issue using CR XI R2 in a 64bit environment.

I found a work around that involved adding two additional registry keys for our 64bit process to use 32bit crystal:

[HKEY_CLASSES_ROOT\Wow6432Node\CLSID\{0BC59388-6740-4D7E-B7D9-B5F20EEABDCD}]
"AppID"="{0BC59388-6740-4D7E-B7D9-B5F20EEABDCD}"

[HKEY_CLASSES_ROOT\Wow6432Node\AppID\{0BC59388-6740-4D7E-B7D9-B5F20EEABDCD}]
"DllSurrogate"=""

This allowed the OLE 64bit to 32bit dllhost surrogate to find the crystal runtime and bridge the 64bit to 32bit process gap.

I found the idea to create these entries from this very general article here: http://www.gfi.com/blog/32bit-object-64bit-environment/

The article was called "Using a 32bit COM object in a 64bit environment"

However you really need to move beyond RDC at this point.

Hope this helps!

Answers (0)