Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Prevent Save in Word?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
01198988
Message ID:
01205401
Vues:
21
>>>Not sure about 2003 or earlier, but I think not.

This was tested for Word 2003. Works as advertised.

>>Try this.
>>
>>
o=CREATEOBJECT("word.application")
>>odoc = o.Documents.Add
>>o.CommandBars.Item("File").Controls.Item("Save As...").Enabled =.f.
>>o.CommandBars.Item("File").Controls.Item("Save").Enabled =.f.
>>o.CommandBars.Item("File").Controls.Item("Print...").Enabled =.f.
>>o.Visible =.t.
>>
>It doesn't work for Office 2007. Not sure about 2003 or earlier, but I think not. I think you'll have to intercept the messages with bindevents.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform