Hi people,
I might have mentioned this in another thread but I really would like a straight answer to the following:
Is noone else having problems using COM-objects in Windows XP? Because: I am. When I try to access COM-objects nothing happens, except for the fact that there's a error-message in my Windows error-logs.
According to this Microsoft page it is "no longer possible" to use COM objects. Or am I getting something wrong?
http://support.microsoft.com/default.aspx?scid=kb%3Bnl%3B909444
So: Are other people here using COM in Windows XP?
Gr,
Paul
What happens if you click on "ShowOptions.vbs"?
Frank
Hi,
Thanks again for fast your reply :)
ShowOptions.vbs opens a webpage showing options. So that probably means that there's nothing wrong with my COM-objects right? :)
In that case the problem might have something to do with Apache then. I'll search the net once more then.
Thanks
I forgot to login ;)
Anyway: what I wanted to add: more information according to solving this problem is always welcome ofcourse (if you have any).
Gr,
Paul
>ShowOptions.vbs opens a webpage showing options. So that
>probably means that there's nothing wrong with my COM-objects
>right? :)
Yes. Then is all alright with PDFCreator. :-)
Check also the other scripts. Use drag'n drop with Convert2pdf.vbs. Drag a file (*.txt, *.doc etc) and drop it on Convert2pdf.vbs.
Frank
So what could be wrong then?
Let's see: I have been able now to invoke Excel using the COM-interface via PHP. So there is nothing wrong with my usage. I have granted the web-user all access to the COM-objects in Windows (that was my former problem).
Anyway: Now I'm back at trying to create a PDF via PHP.
I have created the simplest script possible in PHP:
$PDFC = New COM("PDFCreator.clsPDFCreator") or die('Error: Couldnt start');
$PDFC->cStart("/NoProcessingAtStartup");
$PDFC->cClose();
die('end of script');
?>
What happens? Well, after the cStart-action the script just hangs there and does nothing. When I then kill the process in my Windows processes-list, the script continues and the servers tells me the following:
Warning: (null)(): Invoke() failed: Couldn't execute RPC. in D:\HomeFTP\MILO\site\site1.1\testing\ComTest.php on line 7
Fatal error: Maximum execution time of 30 seconds exceeded in D:\HomeFTP\MILO\site\site1.1\testing\ComTest.php on line 9
So: anyone got any more idea's? I just have to get this thing to work !
I thought: maybe it works when I execute
$PDFC->cPrintPDFCreatorTestpage();
But now I get the error-msg:
Ghostscript error: '%1'!
So... What can I do with that message? Shouldn't %1 be the error-message of GhostScript itself??