Web&word

268 views
215 views

Published on

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
268
On SlideShare
0
From Embeds
0
Number of Embeds
7
Actions
Shares
0
Downloads
1
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Web&word

  1. 1. WEB & WORD<br />家遥<br />
  2. 2. ActiveXObject<br />IE only<br />AJAX (Microsoft.XMLHTTP)<br />Flash和各种播放器<br />读写本地甚至远程文件<br />IE的插件<br />
  3. 3. Word Object Model<br />Just like DOM<br />
  4. 4. Range范围<br />textRange文本范围<br />查找 findText<br />定位 moveToElmentText<br />折叠 collapse<br />比较 compareEndPoints<br />复制 duplicate<br />
  5. 5. execCommand<br />IE only<br />设置字号,颜色,格式XX等等等等<br />复制 execCommand("Copy")<br />定位、删除、保存XX很多很多<br />
  6. 6. HTML导出<br />创建Word.Application<br />Open或 Add<br />Range 找准目标<br />创建TextRange()<br />moveToElementText瞄准<br />execCommand("Copy")<br />Range.Paste()插入<br />
  7. 7. IE only?<br />服务器端<br />PHP<br />COM 组件对象模型<br />new COM("word.application") = <br />new ActiveXObject("Word.Application");<br />
  8. 8. More<br />Excel<br />OutLook<br />更多http://msdn.microsoft.com/zh-cn/<br />

×