php.net |  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
Votes:5
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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
29 + 39 = ?
Subscribe to this entry?

 
 [2006-02-24 06:11 UTC] 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


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-02-24 08:52 UTC] tony2001@php.net
The error message that comes from COM says your file is invalid.
Not PHP problem.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 18 17:01:28 2024 UTC