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