ID: 36505
Updated by: [EMAIL PROTECTED]
Reported By: chanaka at codegen dot net
-Status: Open
+Status: Bogus
Bug Type: COM related
Operating System: Windows xp
PHP Version: 5.1.2
New Comment:
The error message that comes from COM says your file is invalid.
Not PHP problem.
Previous Comments:
------------------------------------------------------------------------
[2006-02-24 06:11:51] chanaka at codegen dot net
Description:
------------
I tried only the first line while comment others. But it also gives
same error. Actually i need generate reports using crystal reports in
php.
Please help..............
Reproduce code:
---------------
<?php
$crapp = new COM("CrystalDesignRunTime.Application");
$creport = $crapp->OpenReport("d:\\athermal\\reports\\backlog.rpt",
1);
$creport->SelectPrinter("winspool", "HP LaserJet 1200 Series
PCL","Ne01:");
$creport->PaperOrientation = 0;
$creport->PrintOut(False);
?>
Actual result:
--------------
Fatal error: Uncaught exception 'com_exception' with message 'Failed to
create COM object `test.rpt': Invalid syntax ' in
C:\wamp\www\Reporttest.php:2 Stack trace: #0
C:\wamp\www\Reporttest.php(2): com->com('test.rpt') #1 {main} thrown in
C:\wamp\www\Reporttest.php on line 2
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=36505&edit=1