i have the following code in my php script. it's for displaying a Crystal Report file.
$cr = new COM( "crystalruntime.application" );
if ( $cr ) {
$cr->OpenReport( "SelectExpert1.rpt", 1 );
}
if i try to access the file with this code on my browser i get the following error.
Fatal error: Uncaught exception 'com_exception' with message '<b>Source:</b> Crystal Reports ActiveX Designer<br/><b>Description:</b> File not found. Details: error' in C:\Program Files (x86)\Apache Software Foundation\Apache2.2\htdocs\moonlight\idtest.php:5 Stack trace: #0 C:\Program Files (x86)\Apache Software Foundation\Apache2.2\htdocs\moonlight\idtest.php(5): com->OpenReport('SelectExpert1.r...', 1) #1 {main} thrown in C:\Program Files (x86)\Apache Software Foundation\Apache2.2\htdocs\moonlight\idtest.php on line 5
what could be the solution to this error?