Word Addin Showing when VSTO Doc Closes

B

burn1down_2k

Greetings,

I have created a Word Add in which opens my VSTO Dot. File which makes
all my menus and Buttons appear.

When a VSTO Document is opened I search for this Toolbar that my addin
created and hide it. This part works fine, but I am having trouble
figuring out where i would write the code to show my add-in when the
VSTO document is closed. Any place it put it, it wont work.

thanks
 
C

Cindy M -WordMVP-

I have created a Word Add in which opens my VSTO Dot. File which makes
all my menus and Buttons appear.

When a VSTO Document is opened I search for this Toolbar that my addin
created and hide it. This part works fine, but I am having trouble
figuring out where i would write the code to show my add-in when the
VSTO document is closed. Any place it put it, it wont work.
Have you tried using the Document_BeforeClose event in the VSTO project?

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
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 :)
 
B

burn1down_2k

Thanks for your reply Cindy.

Yes i have tried that event. What happens in kinda strange, for a brief
Moment I see the Toolbar while the Document is technically open, as
soon as the document closes, my menu dissappears.
 
C

Cindy M -WordMVP-

Yes i have tried that event. What happens in kinda strange, for a brief
Moment I see the Toolbar while the Document is technically open, as
soon as the document closes, my menu dissappears.
When this kind of thing happens, the first thing I check is whether I've
set the CustomizationContext each time I change the toolbar's visibility.
Have you explicitly set the CustomizationContext?

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
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