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:
01205279
Vues:
17
>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.
John Harvey
Shelbynet.com

"I'm addicted to placebos. I could quit, but it wouldn't matter." Stephen Wright
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform