Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Open Word read/only, prevent save as, release variable
Message
De
01/08/2007 08:09:32
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
01244081
Message ID:
01245126
Vues:
31
>>The threads you pointed to required changing the word documentation (by a least adding a password) which I prefer not to do. Thanks for your help.
>

Thanks for looking, for now I will just tell user that they should only use page setup, print and exit.

>Well, unfortunately this can not be a good solution:
>
>oWord = createobject("Word.Application")
>
>lcFile = getfile('DOC')
>if empty(lcfile)
> return
>endif
>with oWord
> .Documents.Open(lcFile)
> *.Application.CommandBars("Standard").Controls("Save").Enabled = .F.
> .Application.CommandBars("File").Controls("Save As...").Enabled = .F.
> .visible = .t.
>endwith
>
>since we need to be able to restore it back before an attempt to close Word file.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform