Group:  Microsoft Word ยป microsoft.public.word.oleinterop
Thread: Shared document opens as "read-only"

Shared document opens as "read-only"
Carlos 11/3/2008 11:52:00 PM
Hi, I'm working with a shared document and don't know how to guarantee that
it is not opened as "read-only". Here is how I open the file. Suppose wdApp
is a Word application, doc is a Word document, sharedPath is the shared path
of doc, localPath is the local path of doc and filename is the name of the
file.

If I'm in the workstation where the file is located, then using
Set doc = wdApp.Documents.Open(sharedPath & filename),
opens the file as read-only, while using
Set doc = wdApp.Documents.Open(localPath & filename),
opens the file normally.

If I'm in another workstation, using
Set doc = wdApp.Documents.Open(sharedPath & filename),
opens the file normally.

How do I guarantee that doc is opened normally?

--
Carlos

Home | Search | Terms | Imprint
Newsgroups Reader