Skip to Content
0
Former Member
Apr 27, 2009 at 04:18 PM

Crystal Reports - PHP issue

36 Views

Hello,

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?