|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2001-07-24 10:43 UTC] tuca at ctgeo dot br
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
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 18:00:01 2025 UTC |
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");