ASP .Net C# 下对Word的操作开发资料


在招标系统的设计当中遇到了要使用asp.net操作word的问题。于是Google到http://www.cnblogs.com/standas/articles/859523.html
在此转载并做了稍微修改,特此声明。

【一些有用的链接】

1. Saving Word Doc back to Web Server
http://www.theimagingsourceforums.com/showthread.php?t=317081

2. 服务器端 Office 自动化注意事项

http://support.microsoft.com/kb/257757/ 

http://msdn.microsoft.com/msdnmag/issues/06/11/BasicInstincts/default.aspx?loc=zh 
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1174465&SiteID=1 
http://blog.joycode.com/kaneboy/archive/2004/11/03/37889.aspx
http://blog.csdn.net/whchen/archive/2006/12/15/1444177.aspx

3. 在服务器端生成 Word 2007 文档http://msdn.microsoft.com/msdnmag/issues/06/11/BasicInstincts/default.aspx?loc=zh

4. C#操作Word文档(Office 2007)

http://www.cnsdn.com.cn/blog/article.asp?id=1791

5. asp.net  Word 操作 (比较全面)
http://blog.csdn.net/c_g1113/archive/2006/11/16/1388715.aspx

6. 从ASP.NET得到Microsoft Word文档 
7. C#中如何保存文本为Word文件或Excel文件
8. 用.net操作word

http://www.studycs.com/ShowArticle.aspx?id=9
9. Office Com AddIn 开发心得 

10. Asp.Net 操作Office笔记

使用CCWordApp类

CCWordApp wp=null;
wp=new CCWordApp();
wp.OpenWithTemplate(Page.MapPath(“模版.doc“));
wp.InsertText(“aa“);
wp.GoToRightCharacter(14);
wp.InsertText(“bb“);
wp.GoToRightCell();
wp.GoToRightCell();
wp.InsertText(“cc“);
... 其余参阅CCWordApp类。

以下是CCWordApp类的下载地址
https://files.cnblogs.com/xryyforver/CCWordApp.cs.rar

使用DSO Framer
1. 在B/S中用DSO Framer OCX + Excel 解决复杂的报表问题
2. Developing Word Application using C# & DSO Framer http://caidehui.cnblogs.com/archive/2006/04/19/378782.html


附DSOFramer下载地址:

https://files.cnblogs.com/xryyforver/DsoFramer.rar


使用ActiveX

1. 在Web页面上直接打开、编辑、创建Office文档  终于找到了
http://blog.joycode.com/kaneboy/archive/2004/11/03/37889.aspx
2. SAMPLE: FramerEx.exe 是 MDI ActiveX 文档容器示例用 VisualC++ 编写
http://support.microsoft.com/kb/268470/
3. Visual C++ ActiveX Control for hosting Office documents in Visual Basic or HTML
http://support.microsoft.com/default.aspx?scid=http://support.microsoft.com:80/support/kb/articles/q311/7/65.asp&NoWebContent=1#

使用iframe显示
  <iframe   name="fraRead"   frameborder="0"   height="300"   width="500"   scrolling="auto"   src="1.doc"></iframe>
 

原文地址:https://www.cnblogs.com/xryyforver/p/1561697.html