[PHP-WIN] Word Object Model...?

2007-10-08 Thread Gustav Wiberg
Hi! Where should I get any reference for Word Object Model for use with PHP. Is Microsofts documentation the only one available or is does anyone know some word-reference-parameters that are available for PHP-use... ? The one I found is: http://msdn2.microsoft.com/en-us/library/tcyt0y1f(VS.80)

RE: FW: [PHP-WIN] Com++ Word AND PHP?

2007-10-08 Thread Gustav Wiberg
Hi! I'm sorry but I did NOT write... > Mis-attributed. This was in my reply to Gustav. I DID NOT write: >>> I do this on my WinNT server - in fact its the only thing left >> stopping me >>> from moving to Linux! >> "COM functions are only available for the Windows version of PHP." Just for you

Re: FW: [PHP-WIN] Com++ Word AND PHP?

2007-10-08 Thread Stut
George Pitcher wrote: Gustav Wiberg wrote: Mis-attributed. This was in my reply to Gustav. I do this on my WinNT server - in fact its the only thing left stopping me from moving to Linux! "COM functions are only available for the Windows version of PHP." My point exactly. When I am able

RE: FW: [PHP-WIN] Com++ Word AND PHP?

2007-10-08 Thread George Pitcher
> Gustav Wiberg wrote: Mis-attributed. This was in my reply to Gustav. > > I do this on my WinNT server - in fact its the only thing left > stopping me > > from moving to Linux! > > "COM functions are only available for the Windows version of PHP." My point exactly. When I am able to create a Wo

RE: [PHP-WIN] Com++ Word AND PHP?

2007-10-08 Thread Gustav Wiberg
Hi! Now I've almost got it... I've managed to startup Word... And get this text in the word-application... I've tested without anonymous access. I guess it was something with the anynomous account that messed things up. But I get this error now: I'm using MS Word 11.0 Fatal error: Uncaught ex

Re: [PHP-WIN] Com++ Word AND PHP?

2007-10-08 Thread John Mertic
Also try doubling up the backslash or using a forward slash on Windows $word->Documents[1]->SaveAs("C:\\hello2.doc"); --or-- $word->Documents[1]->SaveAs("C:/hello2.doc"); Also be sure the process has create file access to to the C: drive. John On 10/8/07, Gustav Wiberg <[EMAIL PROTECTED]> wrote

RE: [PHP-WIN] Com++ Word AND PHP?

2007-10-08 Thread Gustav Wiberg
Hi Nope it didn't seem to solve it. Best regards /Gustav Wiberg -Original Message- From: John Mertic [mailto:[EMAIL PROTECTED] Sent: Monday, October 08, 2007 3:20 PM To: Gustav Wiberg Cc: php-windows@lists.php.net Subject: Re: [PHP-WIN] Com++ Word AND PHP? Perhaps changing the 0 to 1

Re: FW: [PHP-WIN] Com++ Word AND PHP?

2007-10-08 Thread Stut
Gustav Wiberg wrote: I do this on my WinNT server - in fact its the only thing left stopping me from moving to Linux! "COM functions are only available for the Windows version of PHP." From http://php.net/com -Stut -- http://stut.net/ -- PHP Windows Mailing List (http://www.php.net/) To uns

Re: [PHP-WIN] Com++ Word AND PHP?

2007-10-08 Thread John Mertic
Perhaps changing the 0 to 1 in the line would fix it, namely: $word->Documents[1]->SaveAs("C:\hello2.doc"); John On 10/8/07, Gustav Wiberg <[EMAIL PROTECTED]> wrote: > Hi > > I'm trying to run Word and save as a document in PHP. I have tested... > > $word = new COM("word.application"); > //To s

FW: [PHP-WIN] Com++ Word AND PHP?

2007-10-08 Thread Gustav Wiberg
-Original Message- From: George Pitcher [mailto:[EMAIL PROTECTED] Sent: Monday, October 08, 2007 3:02 PM To: Gustav Wiberg Subject: RE: [PHP-WIN] Com++ Word AND PHP? Gustav, > I'm trying to run Word and save as a document in PHP. I have tested... > > $word = new COM("word.application")

[PHP-WIN] Com++ Word AND PHP?

2007-10-08 Thread Gustav Wiberg
Hi I'm trying to run Word and save as a document in PHP. I have tested... Version echo "I'm using MS Word {$word->Version}"; //It's better to keep Word invisible $word->Visible = 0; //Creating new document $word->Documents->Add(); //Setting 2 inches margin on the both sides $word->Selection->Pa