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

本文介绍了使用C#操作Word文档的各种方法,包括利用MS Word组件、NPOI、DocX、Aspose.words等库及EPPlus处理Excel文件。这些工具简化了Office文档的读写流程。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

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

参考链接:http://blog.youkuaiyun.com/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/

posted on 2017-08-15 11:06 marblemm 阅读( ...) 评论( ...) 编辑 收藏

转载于:https://www.cnblogs.com/marblemm/p/7363990.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值