首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > ASP >

Word转换Html

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

求助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> 

热点排行