当前位置: 代码迷 >> ASP >> Word转换Html
  详细解决方案

Word转换Html

热度:214   发布时间:2012-04-02 19:58:59.0
求助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> 
  相关解决方案