visit a file already opened

J

Jerry

Hi every one
I am writing a program which need reading data from word documents. One
problem is that when the end user opened a file(a.doc), if I also want to
read data from a.doc, everytime when I open the file by program, there always
a pop up dialog appear, I want to read data silently, so is there any method
to hide the dialog or share the doc silently by the end user and my program?
Here is my code about open doc file:

Private m_docApp As Word.Application = New Word.Application
m_docApp.DisplayAlerts = Word.WdAlertLevel.wdAlertsMessageBox
m_docApp.Visible = False
......
Dim doc As Word.Document
doc = m_docApp.Documents.Open(path, Visible:=False, ReadOnly:=True)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top