<?
$word=new COM("word.application") or die("Cannot start Microsoft Word");
print "Loaded word version ($word->Version)\n";
$word->visible = 1 ;
$word->Documents->Add();
$word->Selection->Typetext("This is a test");
?> 作者: hg 时间: 2002-9-29 02:56
好東東,多謝!但是在PHP中用com的例子好像很少,大部份都是用ODBC的PHPAPI來的。