如何在网页上直接打开服务器上的word文件,直接将word内容显示在浏览器中,不是调用本地office应用程序,

解决方案 »

  1.   

    客户端安装ie的word插件,或者服务端将word内容读取出来显示在html里
      

  2.   

    或者服务端将word内容读取出来显示在html里 这个比较好,有没有具体些的思路?
      

  3.   


    <script language=javascript>
    function saveword(){
    var oWordApp=new ActiveXObject("Word.Application");
    var oDocument=oWordApp.Documents.Open("http://**/x.doc");
    oDocument.SaveAs("C:\\test.htm", 8)
    oWordApp.Quit();
    }
    </script>
    </HEAD>
    <BODY>
    Click the "save" button to save the file "C:\test.doc" to "C:\test.htm":
    <input type=button onclick="saveword()" value=save></BODY>