免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 990 | 回复: 0
打印 上一主题 下一主题

Copying from Word to a textarea using Javascript [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-01-29 13:15 |只看该作者 |倒序浏览
Copying from Microsoft Word to a textarea using JavaScript
~ in
JavaScript
~
2001 | Oct 31
I did some research and found that not many people had detailed a solution to do this so I've created my own solution. First, there's a couple things that you need to be aware of before you proceed.
  • This is a client-based solution and therefore your client must have Microsoft Word installed on their machine.
  • This solution accesses files on the client's machine and therefore your client must have their security settings to allow script not marked as safe to work.
    So, let's get right into it:
    snook.ca load document
      
      nothing here yet
    This is a very quick and dirty solution. There's a lot more that you can do. You'll want to reference the VBA documentation for Word. Do a search on your hard drive for "VBAWRD9.CHM". If it can't be found, you'll likely need to install the documentation off the Microsoft Office CD.
    Added November 1, 2001:
    Guess what? I have also included a revised version of this code that includes a browse button so users can search for word documents off their hard drive without needing to know the path. It also copies the code directly into the DHTML Editing Component (DEC).
        snook.ca load document
       
       
          
       
       
          
          
           nothing here yet
          
             
       
    Enjoy!


    本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/29515/showart_239481.html
  • 您需要登录后才可以回帖 登录 | 注册

    本版积分规则 发表回复

      

    北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
    未成年举报专区
    中国互联网协会会员  联系我们:huangweiwei@itpub.net
    感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

    清除 Cookies - ChinaUnix - Archiver - WAP - TOP