Word文档未打开,但创建了WINWORD exe [英] Word Document is not opening but WINWORD exe is created
问题描述
我在visual studio 2012中使用VB.NET开发了一个Windows应用程序。在该应用程序中,我创建了一个word对象并打开了来自的word文件一些特定的位置。当我试图从代码打开文件时,WINWORD * 32.exe已创建,但单词
文件未打开。我在DCOM MS word应用程序中检查,在identity属性中选择为"这个用户"由于某些特定原因(对于另一个应用程序),用户名和密码被提供给该用户。由于"此用户"而property
我无法使用code打开word文件。如果我将该属性更改为"launch user"文档正在打开,但此更改会影响另一个应用程序。所以我无法更改"此用户"。 Property.I想用特定的
用户登录打开word文档。请为上述问题提供解决方案。
Hi,
I have developed a windows application using VB.NET in visual studio 2012.In that application i have created a word object and opened word file from some specific location.When i tried to open the file from code ,the WINWORD*32.exe has created but the word
document is not opening.I checked in DCOM MS word application ,in identity property is chose as "This user" and user name and pass word was given to that user for some specific reason(for another application).Due to that "This user" property
i cant open the word file using code.If i change that property to "launching user" the document is opening but this change affect another application.So i cant change that "This user" Property.I want to open the word document with specific
user login.Please provide solution to above problem.
推荐答案
你可以尝试这个来打开word文档。它适用于您可以单击以打开应用程序的任何文件类型。
You can try this for opening word documents. It works with any file type that you can click on to open the application.
Dim PF As String = "C:\folder\Filename.doc"
Dim ps2 As Process = Process.Start(PF)
ps2.WaitForExit()
这篇关于Word文档未打开,但创建了WINWORD exe的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!