Subject: Create Crystal Report using Php, Mysql
Posted By: arry004 Post Date: 9/27/2006 5:16:50 AM
Hi every one...

I need to create crystal report using php, mysql. I have XP, IIS, PHP5.1.6, Mysql 5, CrystalReport 11, Mysql Odbc driver 3.51.60 installed on my pc. The current code I am using is giving me error... please tell me where I am doing wrong....

$COM_Object = "CrystalReports11.ObjectFactory.1";
$objCom = new COM($COM_Object);
        
$crapp = $objCom->CreateObject("CrystalDesignRunTime.Application");
$creport = $crapp->OpenReport($my_report, 1);

RESULT--------->

exception 'com_exception' with message 'Source: Unknown
Description: Unknown' in e:\Projects\RND\COM\PHP_WORD_Demo\CrystalReportDemo.php:12 Stack trace: #0 e:\Projects\RND\COM\PHP_WORD_Demo\CrystalReportDemo.php(12): com->CreateObject('CrystalDesignRu...') #1 {main}

Thanks in advance

Go to topic 50293

Return to index page 163
Return to index page 162
Return to index page 161
Return to index page 160
Return to index page 159
Return to index page 158
Return to index page 157
Return to index page 156
Return to index page 155
Return to index page 154