cancel
Showing results for 
Search instead for 
Did you mean: 

Problems PHP & CR XI

Former Member
0 Kudos

Hello,

I want to use CR XI to create a report in my PHP script.

I installed on my server (w2008 R2 64-bit) :

  - CR XI

  - CR runtime XI

  - wamp : apache 2.4.4 & php 5.4.12

My PHP script :

           $my_report =  "test.rpt";

             //------ Create a new COM Object of Crytal Reports XI ------

             try {

                    $ObjectFactory= new COM("CrystalReports11.ObjectFactory.1");

             }

             catch (Exception $e) {

                    echo (utf8_encode($e->getMessage()));

             }

But i have an error : Failed to create COM object `CrystalReports11.ObjectFactory.1': Class not registered

Can you help me, please ?

Accepted Solutions (1)

Accepted Solutions (1)

former_member183750
Active Contributor
0 Kudos

Ho Samual

What version is the craxdrt.dll you are adding to the project? E.g.; I need the actual numbers under the properties of the dll.

- Ludek

Senior Support Engineer AGS Product Support, Global Support Center Canada

Follow us on Twitter

Message was edited by: Ludek Uher

Former Member
0 Kudos

I tried several solutions and i resolved my problems.


Even if my server is 64bits, CR is 32bits version.


I uninstalled Wamp 64bits version and then i installed 32bits version.

My problem is corrected !


Thx for reply !



former_member183750
Active Contributor
0 Kudos

And many thanks for letting us know the solution. Not too many people (certainly not me ) using PHP, so this is very valuable information.

Happy coding,

- Ludek

Answers (0)