阅读Word文件在C# [英] reading word file in c#

查看:195
本文介绍了阅读Word文件在C#的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有我想分析与C#中的Word文档。有很多的教程在那里,但我有一个很难决定使用什么库。我发现下面的dll文件:

I have a word document I want to parse with C#. There are plenty of tutorials out there, but I have a hard time deciding what library to use. I found the following dlls:

  1. 的Microsoft.Office.Interop.Word
  2. Microsoft.Office.Tools.Word
  3. Microsoft.Office.Tools.Word.v4.0.Utilities
  4. 在COM的Microsoft Word 12.0对象库
  5. 开启XML SDK

这些都是我在网上找到。我应该使用哪一个?其中哪些是过时了吗?

These are all I found on the web. Which one should I use? Which of those are obsolete?

推荐答案

您还可以将其用NetOffice做

You can also do it using NetOffice

网站: HTTP://netoffice.$c$cplex.com/

使用它,你不必担心版本和语法和语义上等同于微软互操作程序集,让你做你的编码方式相同。

Using it you don't need to worry about versions and "Syntactically and semantically identical to the Microsoft Interop Assemblies" so you do your coding the same way.

其他的一些优点:

  • 在没有限制的版本Office集成
  • 所有对象,方法的Office版本2000年,2002年,2003年,包括2007,2010的属性和事件
  • 属性的概念和信息的XML源文档的Office版本(S)都提供特定的方法或属性
  • 在无需培训,如果你已经知道Office对象模型,使用现有的PIA code
  • 降低和更具可读性code与COM代理的自动管理
  • 在没有部署的障碍,无问题的注册,无依赖性,无互操作 组件,无需VSTO
  • 可用与.NET 2.0或更高版本
  • 在轻松外接程序开发
  • Office integration without version limitations
  • All objects, methods,properties and events of the Office versions 2000, 2002, 2003, 2007,2010 are included
  • Attribute concept and XML source documentation for information which Office version(s) are offering the particular method or property
  • No training if you already know the Office object model, use your existing PIA code
  • Reduced and more readable code with automatic management of COM proxies
  • No deployment hurdles, no problematic registration, no dependencies, no interop assemblies, no need for VSTO
  • Usable with .NET version 2.0 or higher
  • Easy Addin Development

这篇关于阅读Word文件在C#的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆