打开word文档 [英] Open the word document

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

问题描述


我在测试Web应用程序上使用了wordfill_src项目.
它对我来说很好用,但是保存后我不知道如何打开单词文件.

您能给我提供一种方法吗?

谢谢

Hi,
I used your wordfill_src project on a test web application.
It worked fine with me, but i don''t know how to open the word file after saving it.

Can you provide me with a method of how to do that?

Thanks

推荐答案

不要将其发布在快速解答"下-如果您从某篇文章中获得了代码,则该文章底部会有一个新消息"按钮该文章,从而导致向作者发送电子邮件.然后会通知他们您希望与他们交谈.
将其发布到此处依赖于他们的"drop by"并意识到它是针对他们的.
Don''t post this under Quick Answers - if you got the code from an article, then there is a "new message" button at the bottom of that article, which causes an email to be sent to the author. They are then alerted that you wish to speak to them.
Posting this here relies on them "dropping by" and realising it is for them.


Object oPath = "C:\\File_name.doc";//find the document
oDoc = oWord.Documents.Add(ref oPath, ref oMissing, ref oMissing, ref oMissing); //load File_name.doc into the document



请确保已经定义了oDoc和oWord:



Please be sure you have defined oDoc and oWord already:

Word._Application oWord; //Define
Word._Document oDoc; //Define



--Vlad781
如果有帮助,请评分/接受作为解决方案



--Vlad781
Please rate / accept as solution if this helps


这篇关于打开word文档的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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