html格式文件直接在word中打开

解决方案 »

  1.   

    直接用word打开html文件.
    然后选取相应的表格.
    Ctrl+C, Ctrl+V
    execel的方法也差不多,再就是execel可以转成access..
    打开access,新建个数据库,导入数据,
    选择execel文件,按向导一步一步,
    可完成表的导入.
      

  2.   

    楼上的大哥,如果在IE上打开了word文件,有什么办法可以做到禁止复制??
      

  3.   

    这个在IE中控件不了,只能在word中用vba控制
      

  4.   

    header("Content-disposition: filename=file.doc");
    header("Content-type: application/octetstream");
    header("Pragma: no-cache");
    header("Expires: 0");
    <!-- 下面写你的显示程式 -->
      

  5.   

    导出成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=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>
      

  6.   

    导出到EXCEL  :
    http://www.csdn.net/Develop/read_article.asp?id=23055
      

  7.   

    office2000以后,ie中选取表格,粘贴至word文档,再保存即可。excel也是如此。
    access是否可以通过excel的csv文件导入?