Override Words Standard Menu

Add-in Express™ Support Service
That's what is more important than anything else

Override Words Standard Menu
Override Words Standard Menu 
Marc Alverez




Posts: 1
Joined: 2004-09-03
Is it possible to replace the Print menu item with my own button? If so, how?
Posted 03 Sep, 2004 10:34:19 Top
Eugene Starostin


Guest


Hi Marc,

Yes, it is possible.
The complete solution will look like this:
1. Remove this item in the AddinInitialize event handler.
2. Add a new button to the File pop-up via ADXCommandBar and handle its click.
3. Handle the DocumentBeforePrint event to avoit Ctrl-P.

That's all.
Posted 03 Sep, 2004 10:51:10 Top
Guest


Guest


Im not sure how I would override the DocumentBeforePrint event.
Posted 03 Sep, 2004 10:55:30 Top
Eugene Starostin


Guest


Aha... Why do you replace this menu item? It seems to be enough to handle the DocumentBeforePrint event. In this case you handle the menu item, the print button and the Ctrl-P shortcut. :)
Posted 03 Sep, 2004 10:56:12 Top
Eugene Starostin


Guest


Im not sure how I would override the DocumentBeforePrint event.


Look at our ADX Toys or Howtos. There are more samples how to handle events of add-in host applications.
Posted 03 Sep, 2004 11:00:54 Top