使用VB.NET从.docx文件读取信息 [英] Read information from .docx file with VB.NET

查看:190
本文介绍了使用VB.NET从.docx文件读取信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

好吧,我花了一个多小时寻找与我的问题相似的东西,却没有发现任何东西...我只能假设最近没有人问这个问题.

我有一个.docx文件,其中的信息用制表符空格分隔.我想做的是:
1)使用VB.NET程序读取文件.
2)在选项卡空格处拆分信息,以供以后使用.
3)在信息中搜索特定条件.

另外,我想知道是否有人知道哪些数据库程序与VS2010 Pro兼容以及它们的学习难度.

在此先感谢!

Okay, I looked for over an hour for something that resembled my problem and did not find anything...I can only assume no one has had to ask this question recently.

I have a .docx file with information on it separated by tab spaces. What I would like to be able to do is:
1) Read the file with a VB.NET program.
2) Split the information at the tab spaces to be used later.
3) Search the information for specific criteria.

Also, I wondered if anyone knows which database programs are compatible with VS2010 Pro and how difficult they are to learn.

Thanks in advance!

推荐答案

1.要阅读文档,您应该使用 Word对象模型 [ ^ ]或 Interop.Word命名空间 [文章 [
1. For reading documents you should use the Word Object Model[^], or the Interop.Word namespace[^].

2. Just about every database can be accessed from Windows programs - nothing to do with Visual Studio - more the database engine. There are plenty of articles[^] here on CodeProject to help you.


这篇关于使用VB.NET从.docx文件读取信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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