读书人

Word转换Html

发布时间: 2012-04-02 19:58:59 作者: rapoo

求助Word转换Html!
网页上有个链接,点击这个链接后,打开服务器上的WORD文件,使WORD以HTML形式显示在网页中


[解决办法]
DOC2HTML是格程序,不是软件

<HTML>
<HEAD>
<script language=javascript>
function saveword(){
var oWordApp=new ActiveXObject( "Word.Application ");
var oDocument=oWordApp.Documents.Open( "C:\\doc2html\\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>
</HTML>

读书人网 >ASP

热点推荐