上传word的同时转存网页,再删除word
---------------------------------------------------------------
我在服务端没有成功过,但是在客户端的代码我有
HTML>
1<head>
2<title>WalkingPoison's Word-to-HTML sample</title>
3<script language="javascript">
4function saveword(){
5var oWordApp=new ActiveXObject("Word.Application");
6var oDocument=oWordApp.Documents.Open("C:\\\sss.doc");
7oDocument.SaveAs("C:\\\test.htm", 8)
8oWordApp.Quit();
9}
10</script>
11</head>
1<body>
2Click the "save" button to save the file "C:\test.doc" to "C:\test.htm":
3<input onclick="saveword()" type="button" value="save"/>
4<p> </p>
5</body>
这段代码如果运行出错,你就把IE的安全级别设低就行了