#36505 [NEW]: Uncaught Exception

From: Date: Fri, 24 Feb 2006 05:11:52 +0000
Subject: #36505 [NEW]: Uncaught Exception
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-93599@lists.php.net to get a copy of this message
From: chanaka at codegen dot net Operating system: Windows xp PHP version: 5.1.2 PHP Bug Type: COM related Bug description: Uncaught Exception 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 bug report at http://bugs.php.net/?id=36505&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=36505&r=trysnapshot44 Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=36505&r=trysnapshot51 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=36505&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=36505&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=36505&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=36505&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=36505&r=needscript Try newer version: http://bugs.php.net/fix.php?id=36505&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=36505&r=support Expected behavior: http://bugs.php.net/fix.php?id=36505&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=36505&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=36505&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=36505&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=36505&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=36505&r=dst IIS Stability: http://bugs.php.net/fix.php?id=36505&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=36505&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=36505&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=36505&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=36505&r=mysqlcfg

« previous php.bugs (#93599) next »