|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits              [2006-02-24 08:52 UTC] tony2001@php.net
 | |||||||||||||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Fri Oct 31 03:00:01 2025 UTC | 
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