<HTML>
<HEAD>
<TITLE>WalkingPoison's Word-to-HTML sample</TITLE>
<script language=javascript>
function saveword()
{
var oWordApp=new ActiveXObject("Word.Application");
var oDocument=oWordApp.Documents.Open("C://test.doc");
oDocument.SaveAs("C://test.html", 8)
oWordApp.Quit();
}
</script>
</HEAD>
<BODY>
Click the "save" button to save the file "C:/test.doc" to "C:/test.htm":
<input type=button οnclick="saveword()" value=save>
<P> </P>
</BODY>
</HTML>
js 将word转换Html
最新推荐文章于 2024-09-12 08:13:10 发布