on 04-07-2014 8:46 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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!
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.