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 Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: chanaka at codegen dot net
New email:
PHP Version: OS:

 

 [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

Pull Requests

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: Sat Dec 21 15:01:29 2024 UTC