$crapp = new COM("CrystalDesignRunTime.Application") or die("Error");
try {
$crapp->OpenReport("D:\\web\\www\\test\\Report1.rpt", 1);
}catch (Exception $oex){
echo $oex->getMessage()."<br>";
echo $oex->getLine();
}
try {
$crapp->PaperOrientation = 0;
$crapp->SelectPrinter("winspool", "HP LaserJet 1200 Series PCL", "Ne01:");
$crapp->PrintOut(False);
}catch (Exception $ex){
echo $ex->getMessage();
}
i got the infomation as follow:
Unable to lookup `PaperOrientation': unknow name
how can i connect the crystal report and meke it works?


Ask A New Question
Reply





MultiQuote






|