如何通过第三个Word文件或Excel文件比较两个Word文件 [英] How to compare two word files through 3rd word file or excel file

查看:86
本文介绍了如何通过第三个Word文件或Excel文件比较两个Word文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨 我有2个单词文件,其中包含一些单词.
我想通过3rd word文件或excel文件比较这些文件.
或-
如何编辑Word文件的数据.
请帮帮我.

Hi I have 2 word file''s containing some words.
I want to compare these files through 3rd word file or excel file.
or-
how to edit data of word files.
Please help me.

推荐答案

目前尚不清楚您要比较哪些文件或如何比较这些文件,但是无论如何您都可以使用Interop来打开和研究这两个文件.请参阅: Microsoft.Office.Interop.Word命名空间 [ ^ ].

例如,如果您想比较两个文档中的单词,则可以遍历 Word对象模型概述 [快速教程:如何在C#中读取Microsoft Word文件 [ ^ ]
- C#Word互操作:Microsoft.Office.Interop.Word [ ^ ]
It''s not quite clear what or how you want to compare the documents, but anyhow you can use Interop to open and investigate both documents. See: Microsoft.Office.Interop.Word Namespace[^].

For example if you want to compare the words from both documents, you could iterate through the Document.Words[^] property of on both documents to see if there are any differences.

Few possibly helpful links:
- Word Object Model Overview[^]
- Quick Tutorial: How To Read Microsoft Word File in C#[^]
- C# Word Interop: Microsoft.Office.Interop.Word[^]


这篇关于如何通过第三个Word文件或Excel文件比较两个Word文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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