I inherited this PHP web application that generates a PDF file from crystal reports. Now I have tried this project on a different server it seems to work properly, but when I try to view it on my development server it returns an exception:
Caught exception:
Failed to create COM object `CrystalReports.ObjectFactory.2': Class not registered
Tracing the code and it seems that it is thrown by this:
$objectFactory= new COM("CrystalReports.ObjectFactory.2") or die("Unable to Create COM");
$crApp = $ObjectFactory->CreateObject("CrystalRuntime.Application.9") or die("Unable to Create Object");
I have tried installing/re-installing CR Basic Runtime on my server, but it doesn't seem to work (I'm using a 64-bit computer).
I'm using: PHP 5.3.10, Crystal Reports 9, Apache 2.4