when i use this code
<?
$cr=new com("Crystal.CRPE.Application") or die("cannot load cr com");
$rn="D:\xampp\mohan\rep\Report1.rpt";
$rap=$cr->OpenReport($rn);
?>


iget this error


Uncaught exception 'com_exception' with message '<b>Source:</b> cpeaut32<br/><b>Description:</b> Unable to load report.' in D:\xampp\htdocs\mohan\rep\try5.php:4 Stack trace: #0 D:\xampp\htdocs\mohan\rep\try5.php(4): com->OpenReport('D:?mpp\mohan?ep...') #1 {main} thrown in D:\xampp\htdocs\mohan\rep\try5.php on line 4


can any body solve my problem?

I want to call crystal report from PHP and I am very new to PHP. Do you know how to do this.

Please send me the sample code if you have one.

Thank you very much..

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.