View Single Post
  #1 (permalink)  
Old September 27th, 2006, 05:16 AM
arry004 arry004 is offline
Registered User
Join Date: Sep 2006
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to arry004 Send a message via Yahoo to arry004
Default Create Crystal Report using Php, Mysql

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);


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

Thanks in advance
Reply With Quote