Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Read-only Word
Message
 
 
À
10/04/2000 22:53:52
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
Divers
Thread ID:
00357809
Message ID:
00357836
Vues:
18
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform