|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #36505 Uncaught Exception
Submitted: 2006-02-24 06:11 UTC Modified: 2006-02-24 08:52 UTC
Avg. Score:4.6 ± 0.8
Reproduced:4 of 4 (100.0%)
Same Version:4 (100.0%)
Same OS:4 (100.0%)
From: chanaka at codegen dot net Assigned:
Status: Not a bug Package: COM related
PHP Version: 5.1.2 OS: Windows xp
Private report: No CVE-ID: None
 [2006-02-24 06:11 UTC] chanaka at codegen dot net
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:
$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;

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


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2006-02-24 08:52 UTC]
The error message that comes from COM says your file is invalid.
Not PHP problem.
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Sun Nov 27 15:05:53 2022 UTC