将HTML表格导出成WORD、ACCESS、EXECEL等文件格式? html格式文件直接在word中打开 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 直接用word打开html文件.然后选取相应的表格.Ctrl+C, Ctrl+Vexecel的方法也差不多,再就是execel可以转成access..打开access,新建个数据库,导入数据,选择execel文件,按向导一步一步,可完成表的导入. 楼上的大哥,如果在IE上打开了word文件,有什么办法可以做到禁止复制?? 这个在IE中控件不了,只能在word中用vba控制 header("Content-disposition: filename=file.doc"); header("Content-type: application/octetstream"); header("Pragma: no-cache"); header("Expires: 0");<!-- 下面写你的显示程式 --> 导出成WORD:<html><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312"><title>无标题文档</title></head><body><div id="Layer1" >下在内容下在内容下在内容<input type=button name='button_export' title='导出导word' onclick=OpenWord() value=下载到word></div></div><p>不需要的内容不需要的内容不需要的内容</p><table border="1"><Tr><Td>1</td><Td>2</td><Td>3</td></tr><Tr><Td>4</td><Td>5</td><Td>6</td></tr><Tr><Td>7</td><Td>8</td><Td>9</td></tr></table></body></html><script language="javascript">function OpenWord(){Layer1.style.border=0ExcelSheet = new ActiveXObject('Word.Application');ExcelSheet.Application.Visible = true;var mydoc=ExcelSheet.Documents.Add('',0,1);myRange =mydoc.Range(0,1)var sel=Layer1.document.body.createTextRange()sel.select()Layer1.document.execCommand('Copy')sel.moveEnd('character')myRange.Paste();location.reload()ExcelSheet.ActiveWindow.ActivePane.View.Type=9}</script> 导出到EXCEL :http://www.csdn.net/Develop/read_article.asp?id=23055 office2000以后,ie中选取表格,粘贴至word文档,再保存即可。excel也是如此。access是否可以通过excel的csv文件导入? 发现了json2.js的一个大bug 为什么在IE6和IE7出错了呢? MyEclipse里写JS脚本为什么点不出属性? 问个问题! 关于javascript js 左右文字移动 怎样实现网页导出word,excel带图片 frame窗体导航菜单不能完全显示问题! 怎样把整型数据转换成字符型数据 TO:karma(无为),TREEVIEW问题最后一问,^_^ 请问? 请问用Javascript怎样在新敞口中建立链接?
然后选取相应的表格.
Ctrl+C, Ctrl+V
execel的方法也差不多,再就是execel可以转成access..
打开access,新建个数据库,导入数据,
选择execel文件,按向导一步一步,
可完成表的导入.
header("Content-type: application/octetstream");
header("Pragma: no-cache");
header("Expires: 0");
<!-- 下面写你的显示程式 -->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
</head>
<body>
<div id="Layer1" >下在内容下在内容下在内容
<input type=button name='button_export' title='导出导word' onclick=OpenWord() value=下载到word></div>
</div><p>不需要的内容不需要的内容不需要的内容</p>
<table border="1">
<Tr><Td>1</td><Td>2</td><Td>3</td></tr>
<Tr><Td>4</td><Td>5</td><Td>6</td></tr>
<Tr><Td>7</td><Td>8</td><Td>9</td></tr>
</table>
</body>
</html>
<script language="javascript">
function OpenWord(){
Layer1.style.border=0
ExcelSheet = new ActiveXObject('Word.Application');
ExcelSheet.Application.Visible = true;
var mydoc=ExcelSheet.Documents.Add('',0,1);
myRange =mydoc.Range(0,1)
var sel=Layer1.document.body.createTextRange()
sel.select()
Layer1.document.execCommand('Copy')
sel.moveEnd('character')
myRange.Paste();
location.reload()
ExcelSheet.ActiveWindow.ActivePane.View.Type=9
}
</script>
http://www.csdn.net/Develop/read_article.asp?id=23055
access是否可以通过excel的csv文件导入?