Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Disable word's save toolbar button and file menu button
Message
De
16/03/2001 11:56:20
 
 
À
15/03/2001 17:30:24
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00485474
Message ID:
00485960
Vues:
22
Hi John,
Thanx I will update you on my progress.

Dr. G. (Neil)

>OK, you can disable the standard tool bar this way:
>
>oWord=CREATEOBJECT("Word.Application")
>oWord.CommandBars("Standard").Visible = .F.
>
>I have yet to find a way to kill off menu options. Yes, you can intercept the Save command, but I agree with you that it's visually challenging to the user to have an option whicg does nother. To me, this is one of the "Holy Grails" of Word automation.
>
>
>>Hi UTers'
>>
>>Is there a way to disable the SAVE button from the standard toolbar or the entire standard toolbar via automation? I also need to disable the FILE|SAVE menu selection from the system menu.
>>
>>You see, I don't want a user to save the modifications to a document he or she might have modified. I know that I could create a temporary copy of the document, allow the user to make changes to the copy, and at the end of the automation session simply delete the temporary file thereby not saving the changes. Yes, this will protect the original document from the user's changes but the user is receiving visual cues that he or she can save the document via the standard toolbar and the FILE|SAVE menu items. It is for that reason that I would prefer just to disable the saving options from the standard toolbar and FILE|MENU menu items.
>>
>>Thanx
>>DR. G. (Neil)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform