ysabelafuentes Posted June 27, 2012 Share Posted June 27, 2012 i'm having trouble getting started Crystal Reports XI with PHP 5 but i'm having trouble getting started. Here's some code i used: $my_report = "C:\\Report3.rpt"; //rpt source file //-Create new COM object-depends on your Crystal Report version //This is line 79 $ObjectFactory= new COM("CrystalReports11.ObjectFactory.1") or die ("Error on load"); // call COM port $crapp = $ObjectFactory->CreateObject("CrystalRuntime.Application.11.0.0.89327"); // create an instance for Crystal $creport = $crapp->OpenReport($my_report); // call rpt report The error: Fatal error: Uncaught exception 'com_exception' with message 'Source: Unknown Description: Unknown' in C:\wamp\www\sivesst\system\application\controllers\pruebareportepdf.php on line 79 Does anybody know what module i'm missing or if i'm doing something wrong in php? I nedd some library? Configurate pnp.ini? Configurate Crystal report? I've never worked with COM before. please help with the conection (step by step)! Quote Link to comment https://forums.phpfreaks.com/topic/264884-problems-with-com-crystal-report-11-y-php-5/ Share on other sites More sharing options...
jcbones Posted June 28, 2012 Share Posted June 28, 2012 Installation There is no installation needed to use these functions; they are part of the PHP core. The Windows version of PHP has built-in support for this extension. You do not need to load any additional extensions in order to use these functions. You are responsible for installing support for the various COM objects that you intend to use (such as MS Word); we don't and can't bundle all of those with PHP. Quote Link to comment https://forums.phpfreaks.com/topic/264884-problems-with-com-crystal-report-11-y-php-5/#findComment-1357602 Share on other sites More sharing options...
ysabelafuentes Posted June 28, 2012 Author Share Posted June 28, 2012 then, it may be the version that i`m install about crystal report that is not supported!. Some people says in other forums that to install the server ( will be crystal report server XI)? Quote Link to comment https://forums.phpfreaks.com/topic/264884-problems-with-com-crystal-report-11-y-php-5/#findComment-1357609 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.