<object id="WebBrowser" width=0 height=0 classid="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"></object>
<body onLoad="openContract()">
</body>
<script language="javascript">
function openContract()
{
window.open("***.doc")
document.all.WebBrowser.ExecWB(45,1)
}
</script>
这段代码可以搞定,不过只能在IE浏览器下。<!DOCTYPE html>
<html>
<head>
<title>New Document</title>
<meta http-equiv="Content-Type" content="text/htmlcharset=utf-8" />
</head>
<body>
<form id="form">
<table id = "PrintA" width="100%" border="1" cellspacing="0" cellpadding="0" >
<tr style="text-align : center">
<td>单元格1</td>
<td>单元格2</td>
<td>单元格3</td>
<td>单元格4</td>
</tr>
<tr>
<td colSpan=4 style="text-align : center"><font color="red" face="Verdana">单元格合并</FONT></td>
</tr>
</table>
<BR>
<table id = "Test" width="100%">
<tr>
<td><font color="red">test</FONT></td>
</tr>
</table>
</form>
<input type="button" onclick="javascript:MakeWord()" value="导出页面到Word">
<script type="text/javascript">
function MakeWord()
{
var word = new ActiveXObject("Word.Application")
// var doc = word .documents.open("c:\test.doc")//此处为打开已有的模版
var doc = word .Documents.Add("",0,1)//不打开模版直接加入内容
var Range=doc.Range()
var sel = document.body.createTextrange()
sel.moveToElementText(form)//此处form是页面form的id
sel.select()
sel.execCommand("Copy")
Range.Paste()
word .Application.Visible = true
doc .saveAs("c:\\ba.doc")//存放到指定的位置注意路径一定要是“\\”不然会报错
}
</script>
</body></html>
<script type="text/javascript">
function word()
{
word=new ActiveXObject('word.application')
word.Application.Visible=trUE
var doc=word.Documents.Add('',0,1)
range=doc.range(0,1)
var sel=Layer1.document.body.createTextrange()
Layer1.document.execCommand('Copy')
sel.moveEnd('character')
range.Paste()
location.reload()
word.ActiveWindow.ActivePane.view.Type=3 //默认为页面视图
}
</script>
<div id="Layer1"><input type="button" name="button" value="生成word" onclick="word()"></div>
1. Microsoft Office 2003 简体中文版(免激活) 2003 [点击这里下载]www.sooweb.net/Html/Soft/11.html
2. Microsoft Office 2000 简体中文专业版 [点击这里下载]
www.ylmf.net/Software/Catalog24/46.html
3. Microsoft Office 2000 简体中文版 [点击这里下载]
www.syku.net/down/soft/1692.htm
4. Microsoft Office 2003 简体中文正式版免激活版 [点击这里下载]
www.ttud.com/soft/358.htm
5. Microsoft Office 2000 Service Pack 3 简体中文版
微软 Microsoft Office 2000 Service Pack 3 更新程序
www.skycn.com/soft/7170.html
6. Office 2000 Service Pack 3 简体中文版
微软MicrosoftOffice2000ServicePack3更新程序。Office2000ServicePack3(SP3)提供了Of
www.onlinedown.net/soft/12709.htm
7. Microsoft Office 2003 Suite SP2 简体中文完整版
MicrosoftOffice2003SuiteServicePack1.O(SP2)提供MicrosoftOffice2003的最新更新.SP2
www.onlinedown.net/soft/27739.htm
8. Microsoft Office XP SP3 简体中文版(不需安装光盘)
(该版本不需要原Office XP安装光盘)Office XP Service
www.skycn.com/soft/15855.html
9. Microsoft Office XP Server Pack SP3 简体中文完整版
OfficeXPServicePack3(SP3)提供MicrosoftOfficeXP的最新更新。SP3在安全性方面进行了
www.onlinedown.net/soft/27740.htm
10. Office 2003 Service Pack 2 简体中文版
Office 2003 Service Pack提供Microsoft Office 2003的最新更新
http://download.pchome.net/system/patch/4519.html
11. Microsoft Office 2003 Suite SP2 简体中文完整版
Microsoft Office 2003 Suite Service Pack 1.O(SP2)
www.skycn.com/soft/24180.html
12. Microsoft Office XP Server Pack SP3简体中文完整版
Office XP Service Pack 3 (SP3) 提供 Microsoft Office XP 的最新更新。SP3 在安
http://download.21cn.com/list.php?id=40352
13. Microsoft Office XP SP2 简体中文版 Office XP Server Pack 2
Microsoft Office XP Server Pack 2 简体中文版
http://download.pchome.net/utility/file/editor/12586.html
14. Microsoft Office XP SP2 简体中文版 Office XP Server Pack 2
Microsoft Office XP Server Pack 2 简体中文版
http://antivirus.pchome.net/utility/file/editor/12586.html
15. Microsoft Office XP sp2 简体中文版 Administrative Updates
Microsoft Office XP sp2 简体中文版 Administrative Updates
http://download.pchome.net/utility/file/editor/12587.html
16. Microsoft Office XP SP3 简体中文版(需安装光盘)
(该版本需要原Office XP安装光盘)Office XP Service P
www.skycn.com/soft/15860.html
17. Microsoft Office XP sp2 简体中文版 Administrative Updates
Microsoft Office XP sp2 简体中文版 Administrative Updates
http://antivirus.pchome.net/utility/file/editor/12587.html
18. Microsoft Office 2003 Suite SP2 简体中文完整版
www.ddooo.com/softdown/34929.htm
19. Microsoft Office XP SP3 简体中文版(不需安装光盘)
http://download.winzheng.com/softview/SoftView_19914.htm
20. Microsoft Office 2000 Service Pack 3 简体中文版
http://download.pcsky.cn/downinfo/3133.html
21. Microsoft Office XP SP3 简体中文版(不需安装光盘)
http://download.pcsky.cn/downinfo/3859.html
22. Microsoft Office 2003 简体中文迷你第4版
http://download.pcsky.cn/downinfo/3855.html
23. Microsoft Office XP SP3 简体中文版(不需安装光盘)
http://soft.mumayi.net/Software/Catalog66/145.html
24. Microsoft Office 2003 Suite SP1 简体中文完整版
www.shareware.cn/pub/8159.html
25. Microsoft Office XP Server Pack SP3 简体中文完整版
www.shareware.cn/pub/8161.html
26. Microsoft Office XP Server Pack SP3 简体中文完整版
www.pcdog.com/soft/741.htm
27. Microsoft Office V2003 Suite SP1 简体中文完整版
www.pcdog.com/soft/37100.htm
28. Microsoft Office XP SP3 简体中文版(需安装光盘)
www.78soft.com/soft/4366.htm
29. Microsoft Office XP SP3 简体中文版(不需安装光盘)
www.78soft.com/soft/4341.htm
30. Microsoft office Visio 2003 简体中文专业版 2003
www.sooweb.net/Html/Soft/69.html
31. Microsoft Office 2000 Service Pack 3 简体中文版
http://down.xxjp.org/Software/Catalog176/2567.html
32. Microsoft Office 2000 Service Pack 3 简体中文版
www.ylmf.net/Software/Catalog24/45.html
33. Microsoft Office XP sp2 简体中文版 Administrative Updates
www.05sun.com/Software/Catalog72/11129.html
34. Microsoft Office XP SP2 简体中文版 Office XP Server Pack 2
www.05sun.com/Software/Catalog72/11127.html
35. Microsoft Office 2003 简体中文免激活版
www.syku.net/down/soft/1685.htm
36. Microsoft Office XP Service SP3 简体中文版
www.nbdown.net/ViewSoft-1238.aspx
37. Microsoft Office System 2003 简体中文版
www.yqdown.com/soft/10663.htm
38. Microsoft Office 2003 Suite SP2 简体中文完整版
http://down.vipgov.com/downinfo/24743.html
39. Microsoft Office XP SP3 简体中文版(需安装光盘)
http://down.vipgov.com/downinfo/15858.html
40. Microsoft Office XP SP3 简体中文版(不需安装光盘)
http://down.vipgov.com/downinfo/15853.html
41. Microsoft Office 2000 Service Pack 3 简体中文版
http://down.vipgov.com/downinfo/7171.html
42. Microsoft Office Project 2003 简体中文版
www.anxz.com/down/407.html
43. Microsoft Office System 2003 简体中文企业版免激活
www.anxz.com/down/260.html
44. Microsoft Office 2003 简体中文正式版免激活版
www.dorla.com/soft/460.htm
45. Microsoft Office 2003 3in1(3合1) 简体中文正式版 龙族出品的Office2003
www.lm8.cn/SoftView/SoftView_254.html
46. Microsoft office 2000 简体中文版原版光盘镜像
www.lm8.cn/SoftView/SoftView_110.html
47. Microsoft Office System 2003 简体中文企业版免激活
www.rzzyk.com/down/260.html
48. Microsoft Office Project 2003 简体中文版
www.rzzyk.com/down/407.html
49. Microsoft Office XP 简体中文迷你版
www.jfdown.com/SoftView/SoftView_7623.html
50. Microsoft Office 2003 简体中文迷你版修正第三版
www.jfdown.com/SoftView/SoftView_7626.html
51. Microsoft office Project 2003 简体中文专业版
www.jfdown.com/SoftView/SoftView_19850.html
52. Microsoft office Visio 2003 简体中文专业版
www.jfdown.com/SoftView/SoftView_19849.html
53. Microsoft office 2000 简体中文企业版
www.jfdown.com/SoftView/SoftView_18969.html
54. Microsoft Office XP SP3 简体中文版(需安装光盘)
www.jfdown.com/SoftView/SoftView_5987.html
55. Microsoft Office XP SP3 简体中文版(不需安装光盘)
www.jfdown.com/SoftView/SoftView_5988.html
56. Microsoft Office 2003 简体中文专业版 完美免激活
www.ayxz.com/soft/8729.htm
57. Microsoft Office 2000 Service Pack 3 简体中文版
www.jfdown.com/SoftView/SoftView_6152.html
58. Microsoft Office 2003 Service Pack 2 简体中文版
www.piaodown.com/down/soft/4921.htm
59. Microsoft Office 2003 简体中文版(免激活)
www.piaodown.com/down/soft/7916.htm
60. Microsoft Office XP SP3 简体中文完整版
www.piaodown.com/down/soft/10201.htm
61. Microsoft Office XP Server Pack SP3 简体中文完整版
www.tiansha.net/down/soft/493.htm
62. Microsoft Office 2003 Service Pack 2 简体中文版
www.fixdown.com/soft/4508.htm
63. Microsoft Office XP SP3 简体中文完整版
www.fixdown.com/soft/4486.htm
64. Microsoft Office XP Service SP3 简体中文版
www.pay500.com/s4/46886.htm
65. Microsoft Office XP Server Pack SP3 简体中文完整版
www.pay500.com/s4/46885.htm
66. Microsoft微软Office 2003最新Service Pack 2官方简体中文正式版For Win2000/XP(2005年9月28日发布)
www.mydrivers.com/dir130/d52190.htm
67. [I/O设备驱动]Microsoft微软IntelliType Pro keyboard应用程序 2.11简体中文版...
Microsoft IntelliType Pro软件适用于Office keyboard、Wireless Desktop、Microsoft
http://download.zol.com.cn/detail.php?softid=23903
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)