0

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?

3
Contributors
6
Replies
17
Views
4 Years
Discussion Span
Last Post by diafol
0

Clue: File not found
Where in the code the exception was thrown:

C:\Program Files (x86)\Apache Software Foundation\Apache2.2\htdocs\moonlight\idtest.php on line 5

My crystal ball can't peek into your code from here.

0

i have corrected the mistake but the report is not being displayed

1

Does this require Internet Explorer (thinking of COM) or does it work with all browsers?

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.