holla....
i need some advise and / or some samples on how to preview crystal report 8.5 in PHP.
I'm a newbie at PHP. Just try to learn how to show my .RPT (crystal report) file to be shown at my PHP page.
I try some way, according to what I've search on internet. but, my .RPT never show up at my PHP page. only return blank page....
here is my simple code to show the .RPT....
any missing ?
any help ? since after i preview the code on my IE, it returns only a blank page with 2 line of text as below :Code:echo "<br>\n"."printing report..."; $cr=new com("CrystalRuntime.Application"); $creport = $cr->OpenReport("d:\\Report1.rpt", 1); $creport->DiscardSavedData(); $creport->PrintOut(False); $server = "myserver"; $db = "mydb"; $userid = "myid"; $passid = "mypass"; $creport->Database->Tables(1)->SetLogOnInfo($server, $db, $userid, $passid); $creport->ReadRecords(); echo "<br>\n"."D O N E...";
printing report...
D O N E...
=p~
help pls ? nd Thx in advance.
Regards,
[-w-]


Reply With Quote