Hi everybody,

I'm trying to launch a Crystal Report .rpt file from my PHP script.

Code following:
<?php
$crapp = new COM("CrystalDesignRunTime.Application");
$creport = $crapp->OpenReport("C:\Foxserv\www\Etat1.rpt", 1);
$creport->DiscardSavedData();
$creport->ReadRecords();
$creport->PrintOut(False);

echo 'Driver Name : ' . $creport->DriverName.' <br>';
echo 'Printer Name : ' . $creport->PrinterName.'
<br>';
echo 'Port Name : ' . $creport->PortName.' **<br>';
?>

All that I'm receiving is:

Driver Name : DISPLAY
Printer Name :

Port Name : **

and the report is not printing.
Could anybody give me a hint please??('cause that's so not good πŸ™‚ )

Large

    This is interesting, I didn't know that we can launch Crystal Reports from a php script!!!

    Where I can find more information about it????

      Originally posted by legomez2000
      This is interesting, I didn't know that we can launch Crystal Reports from a php script!!!

      I'd wait till he gets it working before getting too excitedπŸ™‚

        Write a Reply...