怎样用php读取word2007,然后显示到网页上呢
如题
<br /> <br /> <?php<br /> $word = new COM("word.application") or die ("Could not initialise MS Word object.");<br /> $word->Documents->Open(realpath("Sample.doc"));<br /> <br /> // Extract content.<br /> $content = (string) $word->ActiveDocument->Content;<br /> <br /> echo $content;<br /> <br /> $word->ActiveDocument->Close(false);<br /> <br /> $word->Quit();<br /> $word = null;<br /> unset($word);<br /> ?><br /> <br />