#36505 [Opn->Bgs]: Uncaught Exception

From: Date: Fri, 24 Feb 2006 07:52:13 +0000
Subject: #36505 [Opn->Bgs]: Uncaught Exception
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-93604@lists.php.net to get a copy of this message
ID: 36505 Updated by: tony2001@php.net 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

« previous php.bugs (#93604) next »