I need of commands of word, too.


Thanks

Luiz Fernando

<[EMAIL PROTECTED]> escreveu nas notícias de
mensagem:[EMAIL PROTECTED]
> ID: 12341
> Updated by: andy
> Reported By: [EMAIL PROTECTED]
> Status: Feedback
> Bug Type: COM related
> Operating System: NT 4.0 WorkStation
> PHP Version: 4.0.6
> New Comment:
>
> I thought this is what the commands were supposed to do.
>
> If you wanted to open word wouldn't you do something
> like this:
>
> exec("c:\path\to\winword");
>
>
> Previous Comments:
> ------------------------------------------------------------------------
>
> [2001-07-24 12:17:04] [EMAIL PROTECTED]
>
> Did the document save correctly?
>
> ------------------------------------------------------------------------
>
> [2001-07-24 10:43:11] [EMAIL PROTECTED]
>
> A take a sample of function COM.
>
> $word = new COM("word.application") or die("Unable to instanciate Word");
> print "Loaded Word, version {$word->Version}\n";
> $word->Visible = 1; // command that show window
> $word->Documents->Add();
> $word->Selection->TypeText("This is a test...");
> $word->Documents[1]->SaveAs("Useless test.doc");
>
> The commands execute, but the window of word don't appears.
>
> I make a test with Autocad too, but the window don't appears.
> When a had a ohter version PHP, don't remember, the window appears
>
> thanks
>
> Luiz Fernando
>
>
> ------------------------------------------------------------------------
>
>
>
> Edit this bug report at http://bugs.php.net/?id=12341&edit=1
>



-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to