Change Office menu OR temp. disable event handler?

S

scw-tzg

Using VSTO 2008 for Office Word 2007 AddIn running on Windows XP

1. Is it possible to hide/show items on the Office menu (such as Save)?
2. Is it possible to set up an event handler for DocumentBeforeSave and
then temporarily disable/re-enable this event handler while the AddIn is
running?
 
C

Cindy M.

Hi Scw-tzg,

Usually the VSTO forum is the optimal place to ask these questions:
http://social.msdn.microsoft.com/Forums/en-US/vsto/threads?
lc=1033&prof=required&page=1
Using VSTO 2008 for Office Word 2007 AddIn running on Windows XP

1. Is it possible to hide/show items on the Office menu (such as Save)?
You can access these commands only by using a RibbonXML item in your
solution (it can't be done using the RibbonDesigner). For many of the
commands you can only enable/disable, not hide/show. You can specify the
2. Is it possible to set up an event handler for DocumentBeforeSave and
then temporarily disable/re-enable this event handler while the AddIn is
running?
As long as this isn't VB.NET using WithEvents it should be possible. But why
can't you simply check some property (even a global Boolean member in your
project) and just skip the rest of the code in the event handler?

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top