When trying to call the crystal report 2008 in php it display this error message:
Fatal error: Uncaught com_exception: Failed to create COM object `CrystalRuntime.Application.12': Invalid syntax in C:\xampp\htdocs\xampp\BISCOMHRMS\attendancelogreport.php:8 Stack trace: #0 C:\xampp\htdocs\xampp\BISCOMHRMS\attendancelogreport.php(8): com->com('CrystalRuntime....') #1 {main} thrown in C:\xampp\htdocs\xampp\BISCOMHRMS\attendancelogreport.php on line 8
Here is my code calling the crystal report in php:
$ObjectFactory = new COM('CrystalRuntime.Application.12');
$creport = $ObjectFactory->OpenReport("D:eport\Attendance Reports.rpt",
1);
$creport->DiscardSavedData();
$creport->ReadRecords();