只能com来处理了,多研究研究com对象吧。
word->Documents->Add(); 

应该有word->Documents->open(filename:string);吧个人认为:
先从数据库中取来生成一个临时DOC文件
使用COM对象显示到BROWSER,BROWSER的操作在体现到COM对象上。
不知道效果如何,自己试一下吧。

解决方案 »

  1.   

    参考下段程序,或许对你有帮助,以下程序通过运行,可以正常使用.
    define ("wdDoNotSaveChanges",0);
    define ("wdDialogToolsWordCount",228);
    function chncount($FileName)
    {
    $FileName = str_replace("\\","/",$FileName);
    $wordapp = new COM("word.application") or die("Unable to instanciate Word");
    $doc = new COM("word.document") or die("不能创建文档对象" );
    @$wordapp->Documents->Close(wdDoNotSaveChanges);
    $wordapp->Visible = 1;
    $doc = $wordapp->Documents->Open($FileName);
    $dlg = $wordapp->Dialogs(wdDialogToolsWordCount);//$wordapp一定要加上
    $dlg->Execute();
    $numchr = ($dlg->Characters - $dlg->dbcs) / 2 + $dlg->dbcs ;//'中文字数 + 英文字母数/2
    @$doc->Close(wdDoNotSaveChanges);
    $wordapp->Quit();
    unset($doc);
    unset($wordapp);
    return $numchr;
    }