Turn your Mobile Apps into m-commerce apps – Learn More!

You're Browsing As A Guest! Register Now...
Become a PHP Expert!

Join 416,721 PHP Programmers for FREE! Get instant access to thousands of PHP experts, tutorials, code snippets, and more! There are 2,869 people online right now.Registration is fast and FREE... Join Now!



How to connect to crystal report using PHP Rate Topic: -----

#1 sunefeeling  Icon User is offline

  • New D.I.C Head
  • Pip

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 21-May 08


Dream Kudos: 0

Share |

How to connect to crystal report using PHP

Posted 21 May 2008 - 07:18 PM

hi,i want to connect to crystal report using PHP,but i can not get the expected result,
$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?
Was This Post Helpful? 0
  • +
  • -



Fast Reply

  

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users