mirror of
https://github.com/php/php-src.git
synced 2024-10-05 16:56:11 +00:00
9 lines
286 B
Plaintext
9 lines
286 B
Plaintext
![]() |
<?
|
||
|
$word = new COM("word.application") or die("Unable to instanciate Word");
|
||
|
print "Loaded Word, version {$word->Version}\n";
|
||
|
$word->Visible = 1;
|
||
|
$word->Documents->Add();
|
||
|
$word->Selection->TypeText("This is a test...");
|
||
|
$word->Documents[1]->SaveAs("Useless test.doc");
|
||
|
$word->Quit();
|
||
|
?>
|