Information générale
Catégorie:
COM/DCOM et OLE Automation
Hi, Tom.
Just as a reality-check, I copied and pasted your code into a blank program file, set "edit_doc" to the name of whatever file I wanted, and ran the program. Word opened and displayed the file, and I had full access. In addition, I alredy had an instance of Word running.
Therefore, it would appear to be something with your configuration. Have you tried creating an EXE and running it on another PC?
Michael Reynolds
>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
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement