Any Solution? I also want to open a writer doc...and I got the same Problem.
Where do i have to put which java files?
I use OpenOffice 3, Windows XP and PHP 5.2.6
I tried it with this code
// get the ServiceManager.
// This step varies greatly from language to language.
// This technique is specifically for PHP running on Windows,
// where OOo has been installed onto the *same* computer that is running PHP.
$oServiceManager = new COM( "com.sun.star.ServiceManager" );
// Get the Desktop object
$*****top = $oServiceManager->createInstance( "com.sun.star.frame.Desktop" );
// Ask the Desktop object to create a new drawing.
// Note the empty array of arguments.
// This wold be an array of com.sun.star.beans.PropertyValue structs if
// you needed to specify additional arguments.
$oArgs = array();
$oDrawDoc = $*****top->loadComponentFromURL( "private:factory/sdraw", $oArgs );
and then this error: "Fatal error: Maximum execution time of 60 seconds exceeded in C:\xampp\htdocs\Test\test.php on line 19"
I want you take a look at PUNO : http://www.wstech2.net/index.php?do=puno. With PUNO, you can access OpenOffice API. I have using it quite a while.. The result is : i can control presentation file in a web browser. I have tested it using my ubuntu 7.10 + OpenOffice 2.4.1. Not test in OOo 3 yet, because no SDK at the moment. So, if there is another question about it, welcome... The COM windows tutorial in there is good too..
The main and usual problem call ServiceManager with COM extension is permission! Have you set the permission?? COM permission.