如何获取我在应用程序中打开的word文件的文档? [英] How can I obtain the Document of the word file I have open in my application?

查看:130
本文介绍了如何获取我在应用程序中打开的word文件的文档?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已将Microsoft Word集成到我的应用程序中,并在该应用程序中打开了一些文档.

然后我想获取Word.Document.FullName来判断我是否已经打开了文档(具有给定的路径).如果打开了,我可以直接使用Word.Document!我能怎么做?谢谢你!

I have integrating Microsoft Word in my application,and opened several doc in the application.

then I want to get the Word.Document.FullName to judge if the doc I have opened(with the given path).if opened I Can use the Word.Document directly! How can I do? thank you! code is best!

推荐答案

使用Word互操作,您可以访问文档.
Using the Word interop you have access to the document.


但我想使用Word.另一个* .cs中的文档
but I want use the Word.Document in annother *.cs


这篇关于如何获取我在应用程序中打开的word文件的文档?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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