summaryrefslogtreecommitdiff
path: root/tests/testcom
blob: 0feb50d1ff864784a6044a837fd8633ef60c0222 (plain)
1
2
3
4
5
6
7
8
9
10
11
<?
$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->Quit();
/*
$word->Documents[1]->SaveAs("Useless test.doc");
*/
?>