Hi everybody,
I have a BIG problem with Crystal Reports 9. I try to print a report from a PHP page and it doesn't seem to work. Could anyone give me a hint why it's not working ? (Code following)
$crapp = new COM("CrystalRuntime.Application.9");
$creport = $crapp->OpenReport("C:\\Foxserv\\www\\Etat1.rpt", 1);
$creport->DiscardSavedData();
$creport->ReadRecords();
echo 'Driver Name : ' . $creport->DriverName.' **<br>';
echo 'Printer Name : ' . $creport->PrinterName.' **<br>';
echo 'Port Name : ' . $creport->PortName.' **<br>';
$creport->SelectPrinter("HP LaserJet 1100(MS)", "HPLocal", "LPT1:");
$creport->PaperOrientation = 0;
$creport->PrintOut(False);
echo 'creport->PrintingStatus->Progress : ' . $creport->PrintingStatus->Progress . '<br>';
All this displays :
Driver Name : DISPLAY **
Printer Name : **
Port Name : **
creport->PrintingStatus->Progress : 3
I can't figure why the driver name is DISPLAY and it's killin' me
Thanx for all ideeas.