通过c#操作word文档的其他方式

如果不嫌麻烦可以选择MS的word组件,因为过于庞大复杂。一般都是在无法满足要求的情况下才采用此种方式

参考链接:http://blog.csdn.net/lu930124/article/details/49276711

第二种就是采用c#版本的开源库,

一、NPOI

简介:
NPOI is the .NET version of POI Java project. With NPOI, you can read/write Office 2003/2007 files very easily.

官网地址:
https://github.com/tonyqus/npoi
http://npoi.codeplex.com/      但是对word支持不是很好,

2、之前博客介绍过的DocX,

  参考链接:http://www.cnblogs.com/marblemm/p/7363654.html

3、Aspose.word 商业库

  参考链接:https://my.oschina.net/dancefires/blog/217858

       http://www.cnblogs.com/wuhuacong/archive/2012/08/30/2662961.html

  官方链接:https://docs.aspose.com/display/wordsnet/Working+with+Merged+Cells

4、EPPlus

简介:
EPPlus is a .net library that reads and writes Excel 2007/2010 files using the Open Office Xml format (xlsx). 
官网地址:
http://epplus.codeplex.com/

原文地址:https://www.cnblogs.com/marblemm/p/7363990.html