Menu item remained after the addin is removed

M

mach

I have built an addin for Word that adds one menu item to "Tools", the
strange thing is that everytime I launch Word, a new item will be added into
"Tools" and the old one remained in the menu. Even I removed my addin, the
custom items are still remained in the menu.
Anyone can help me on this?
 
D

David Thielen

You need to first walk through the menu looking to see if your old menu entry
is there and if so either reuse it or delete it, then add your new entry.
This is because an added entry is permanently added.

thanks - dave
 
D

David

I've been having a similar problem with my add-in.
I've tried deleting the CommandBarButton at OnStartShutdown() and even in
OnDisconnection(). However, either one gives me an unhandled COMException.
My guess is that menu items can't be changed at that point. If I make
changes, they do not persist when reloaded.
Any ideas?

Thanks.
 
C

Cindy M -WordMVP-

Hi Mach,
I have built an addin for Word that adds one menu item to "Tools", the
strange thing is that everytime I launch Word, a new item will be added into
"Tools" and the old one remained in the menu. Even I removed my addin, the
custom items are still remained in the menu.
Do you specifically set the CustomizationContext when adding and when deleting
the item? If yes, to what are you setting it?

If not, try specifying it and see if that helps.

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 :)
 
J

Javed

Hi Cindy,
Could you please elaborate the setting of CustomizationContext for
preserving Menus. a little code hint will be helpfull.

Thanks,

--
Javed hussain
Software Developer
GoNetBPO (Pvt.) Ltd.
UAN: +92-21-111-276-111
Tel: +92-21-4391340-7 Ext: 407
Cell: 0300-2659032 Fax:+92-21-4547129
(e-mail address removed)
www.GoNetBPO.com
 

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