Problem in funcition COM
| From: | Luiz Fernando \(Tuca\) | Date: | Tue, 24 Jul 2001 10:49:04 +0000 |
| Subject: | Problem in funcition COM | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-8477@lists.php.net to get a copy of this message | ||
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 appeared.
thanks
Luiz Fernando