Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Read-only Word
Message
 
 
To
10/04/2000 22:53:52
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Miscellaneous
Thread ID:
00357809
Message ID:
00357836
Views:
17
Hi Tom,

A coupla things:

1. Go into the explorer and check the properties of the doc you are trying to open: it may be read-only there.

2. The third parameter of the Open method sets whether to open the document in readonly mode, you might want to try :
oword.documents.open(edit_doc,,.F.)
3. Try using the Add method of the Documents collection instead of the Open method

Rick


>I have an app that picks a doc and opens it for editing... Only I can't edit the doc. It seems to be in read-only mode. Here's what I do...
>
>oword=create('word.application')
>oword.documents.open(edit_doc)
>Application.top = 1
>Application.left = 1
>Application.width = 1150
>Application.height = 875
>oword.top = 1
>oword.left = 1
>oword.width = 1150
>oword.height = 875
>oword.visible= .t.
>
>
>Any ideas?
>
>Thanks
>Tom Welch
Rick Hodder
MCP Visual Foxpro
C#, VB.NET Developer
Independent Consultant
www.RickHodder.com
MyBlog
Previous
Reply
Map
View

Click here to load this message in the networking platform