Document opens as READ ONLY

G

Guest

The environment is Windows Server 2003 running an Access
2003 application which uses Automation to open a Word
2003 document. Have installed latest Office 2003 service
pack.

The application uses the following code to open a Word
document.

Dim oWordApp As Word.Application
Dim oWordDoc As Word.Document
Set oWordApp = New Word.Application
Set oWordDoc = oWordApp.Documents.Open
("\\servername\sharename\foldername\Worddoc.doc")
oWordDoc.Application.Visible = True

When I run that code as Administrator Worddoc.doc opens
normally.
When I run as a Remote User under Terminal Services then
Worddoc.doc opens as a Read Only document.
The Remote User is part of the Users Group.
Security: I have given Users 'full control' of
the 'sharename', 'foldername', 'Worddoc.doc', in
desperation (this is a test machine).

If Remote User opens 'Worddoc.doc' by double-clicking
then it opens normally (well before I gave full control
rights).

I suspect there is a bug.

Thanks
 
T

TC

I wonder if it is anything to do with the early binding? I notice that
you are also starting Word with the New keyword. MS recommend using
CreateObject() istead.

Try the following (untested) changes & see if they make any difference.

Dim oWordApp As OBJECT
Dim oWordDoc As OBJECT
Set oWordApp = CREATEOBJECT("Word.Application")
etc. etc.

HTH,
TC
 

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