Using PHP $pdf->DrawToWeb Not working

Using PHP $pdf->DrawToWeb Not working

Forum member · Aug 14, 2008
Hi Just curious - Is anyone using DynamicPDF in PHP scripts ? I'm having some problems with DrawToWeb function not working - returns a fatal error :: Fatal error: Uncaught exception 'com_exception' with message '<b>Source:</b> System.EnterpriseServices<br/><b>Description:</b> Der er ingen tilgængelig MTS-kontekst.' in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\dynamicpdf\try1.php:12 Stack trace: #0 C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\dynamicpdf\try1.php(12): unknown() #1 {main} thrown in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\dynamicpdf\try1.php on line 12 Sorry for the danish mixup - must translate to "No available MTS.context" Thanks for your time and help. Mark

Re: Using PHP $pdf-&gt;DrawToWeb Not working

Support · Aug 14, 2008
Hello Mark, Do you have the .NET framework installed in your computer? If you do not have the .NET framework then please install it. It is required to run our COM/ActiveX product. Thanks, ceTe Software Support Team.

Re: Using PHP $pdf-&gt;DrawToWeb Not working

Forum member · Aug 15, 2008
Hello CeTe. Yes - I have .NET installed, I'm running Vista Business on my dev. machine - as a sidenote it works fine in PHP when I do $pdf->SaveToFile("C:\\test.pdf"); Also - using vbscript all examples (so far) works fine. Thanks for your help :-) Mark

Re: Using PHP $pdf-&gt;DrawToWeb Not working

Support · Aug 15, 2008
Hello Mark, We have not done testing using our product with PHP and we are not sure why the exception is being thrown. Try and see if you can run any of the downloaded sample examples in .NET. That way we can elimiate a problem related to installtion of the .NET Framework. Thanks, ceTe Software Support Team