Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Crystal Reports - PHP issue


I have the following code:


    $ds = odbc_exec($conn,$strSql);

    //------ Create a new COM Object of Crytal Reports 10 ------
    $ObjectFactory= new COM("CrystalReports11.ObjectFactory.1");

    //------ Create a instance of library Application -------
    $lib = $ObjectFactory->CreateObject("CrystalDesignRunTime.Application");

    //------ Open your rpt file ------
    $creport = $lib->OpenReport($my_report, 1);
    $creport->ReportTitle = $repTitle;

Which works on my development PC which has Visual Studio and Crystal Reports installed, however on a brand new installation on a windows 2003 server the code falls over and the creating an new COM object.

Are there any SDK's or anything that needs to be installed on the webserver?

Former Member
Not what you were looking for? View more on this topic or Ask a question