如何访问word文档的内容(不打开它) [英] How to access word document's content (without opening it)

查看:91
本文介绍了如何访问word文档的内容(不打开它)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,

假设我的计算机上保存了一个Word文档。我需要在报告中显示此文档中的文本,

而不打开它(不是我知道如何在它打开的时候这样做,但无论如何它不应该)。

那么有没有人知道如何访问word doc'的内容?

Hello,
Say there is a word document saved on my computer. I need to display text from this document in a report,
without opening it (not that i know how to do it while it''s opened, but anyway it shouldn''t be).
So does anyone know how to access word doc''s content?

推荐答案

我认为你只是绊倒你的话在这里我无法想象您希望在不打开该文件的情况下从任何类型的文件访问数据。你是想在不打开Word的情况下说的吗?或者甚至没有打开Word以便它在桌面上可见?
I assume you''re just tripping up over your words here as I cannot imagine you expect to access data from any type of file without opening that file. Are you trying to say without opening Word? Or even without opening Word so that it''s visible on the desktop?


我只是不知道它是如何工作的,想想也许它是可能的......如果可能的话我先打开文件?
Well i just have no idea how it works, thought maybe it''s possible.. is it possible if i open the file first?


你可以在Word中无形地打开文件(使用应用程序自动化)。这是我能想到的最接近你所描述的内容。


较新版本的Word(2007及以后版本)以XML格式存储文档(.docx, .xlsx等等)因此可能还有其他软件解析文件的余地(因为XML是一般标准),但我不能帮助这个方向,我很害怕。
You can open the file in Word invisibly (using Application Automation). That''s the closest thing I can think of to what you''re describing.

Newer versions of Word (2007 and onwards) store their documents in XML format (.docx, .xlsx, etc) so there may be further scope for parsing the file with other software (as XML is a general standard), but I couldn''t help with that direction I''m afraid.

这篇关于如何访问word文档的内容(不打开它)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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