Word 2007 C#: Remove leftover context menu

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

Word 2007 C#: Remove leftover context menu
 
Kevin van Zanten




Posts: 22
Joined: 2010-03-12
We have very recently purchased your product and thus far have been very pleased with it. Right now I'm stuck with a bit of a problem, though. As I was fiddling with the various options and controls you supply, I added a few context menu options, which I deleted after I was done. However, even after unregistering the project the controls are still present. I've read through a few threads which suggested changing the temporary property to false worked for them. It worked for me too, but now I'm still stuck with the context menu entry I deleted earlier (and thus don't exist) but are still present in Word.
Any help would be highly appreciated.

Thanks in advance,
Kevin
Posted 12 Mar, 2010 07:40:18 Top
Andrei Smolin


Add-in Express team


Posts: 16481
Joined: 2006-05-11
Hi Kevin,

Thank you for choosing Add-in Express.

If you still have that project available, you can set Temporary = true for all command bar and commandbar controls components in it, register and unregister it. If you don't have that project anymore, you'll need to remove the customizations manually:
- in Word 2000-2003, you'll need to choose Tools | Customize, select the customized command bar and choose Reset
- in Word 2000-2007, you can also remove normal.dot (make a copy of it; just in case...)

Regards from Belarus (GMT+2),

Andrei Smolin
Add-in Express Team Leader
Posted 12 Mar, 2010 07:53:14 Top
Kevin van Zanten




Posts: 22
Joined: 2010-03-12
Dear Andrei,

I still have the project available, so how exactly would I go about changing the property temporary for every commandbar button in it?
I'm a student currently employed by a company for my internship, and as you can imagine my knowledge of C# (and Visual Studio) is still limited.
Posted 12 Mar, 2010 07:59:58 Top
Andrei Smolin


Add-in Express team


Posts: 16481
Joined: 2006-05-11
Kevin,

On the designer surface of the add-in module, choose a command bar component and set Temporary = False, then click its Controls property and set Temporary = False for every control shown in the left pane.

Regards from Belarus (GMT+2),

Andrei Smolin
Add-in Express Team Leader
Posted 12 Mar, 2010 08:19:30 Top
Kevin van Zanten




Posts: 22
Joined: 2010-03-12
Dear Andrei,

That's what I did initially and that's how I removed them. I only have a few controls left there which work fine now, but there are is still one commandBarButton left in Word which I can't remove because it no longer exists in my project.
Any thoughts?
Posted 12 Mar, 2010 08:25:50 Top
Kevin van Zanten




Posts: 22
Joined: 2010-03-12
Dear Andrei,

I managed to locate and remove normal.dotm, successfully removing the context menu entry in my Word 2007.
Thank you for your quick response and friendly help in assisting me with this matter.

Yours sincerely,
Kevin van Zanten
Posted 12 Mar, 2010 08:45:41 Top
Andrei Smolin


Add-in Express team


Posts: 16481
Joined: 2006-05-11
Thank you for letting me know.

Regards from Belarus (GMT+2),

Andrei Smolin
Add-in Express Team Leader
Posted 12 Mar, 2010 09:57:42 Top