Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Crystal report 2008 error with php Post Reply Post New Topic
Author Message
raishaDad
Newbie
Newbie
Avatar

Joined: 16 Nov 2009
Location: Malaysia
Online Status: Offline
Posts: 1
Quote raishaDad Replybullet Topic: Crystal report 2008 error with php
     Posted: 16 Nov 2009 at 7:17pm
I need help.... My php code giving me this error on my server..

Fatal error: Uncaught exception 'com_exception' with message 'Failed to create COM object `CrystalDesignRunTime.Application': Invalid syntax ' in C:\xampp\htdocs\test.php:11 Stack trace: #0 C:\xampp\htdocs\test.php(11): com->com('CrystalDesignRu...') #1 {main} thrown in C:\xampp\htdocs\test.php on line 11


Im using Crystal Report 2008, php 5.2.5, Apache 2.2.8, mysql 5.0.51a on windows server 2003.. (the code run just fine with Crystal report XI but my server using 2008 version)

This code that give the error

$crapp = new COM("CrystalDesignRuntime.Application") or die ("Error on load");
$creport = $crapp->openreport("c:\\xampp\\htdocs\\test.rpt",1);


Edited by raishaDad - 16 Nov 2009 at 7:19pm
IP IP Logged
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum