Word

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

Word
How can I add a menu in the Word Context Menu ? 
Andreas Waning


Guest


Hello,

Is it possible to add a context menue in Word ?
When I press the right mouse key in the word document I want to add a menue entry
in the context menu.

How to do that ?
Thanks Andreas
Posted 02 Aug, 2011 15:40:55 Top
Andrei Smolin


Add-in Express team


Posts: 18830
Joined: 2006-05-11
Hello,

You need to check the section "Context menu" at http://www.add-in-express.com/docs/net-commandbar-components.php.


Andrei Smolin
Add-in Express Team Leader
Posted 03 Aug, 2011 01:17:07 Top
Andreas Waning


Guest


Hello Andrei,

1. I created a WordAddin.
2. I add a AdxContextMenu1
3. I add a AdxCommandBarButton in the Menu
4. I set SupportedApp -> Word
5. I set CommandBarName -> Text

When I debug the Project and I make a right mouse click Nothing happends !!!!

Do I forget anything ???

Thank you Andreas
Posted 04 Aug, 2011 15:43:01 Top
Andrei Smolin


Add-in Express team


Posts: 18830
Joined: 2006-05-11
Hi Andreas,

What Word version do you have? Are you sure you clicked text, not table, image, field etc?


Andrei Smolin
Add-in Express Team Leader
Posted 05 Aug, 2011 03:52:28 Top
Andreas Waning


Guest


I have Word 2010

Is that right, when I write some text in Word, click on the text and I click than the right mouse button, in the context menu must added my adxCommandBarButton1 ???

Or must I set some other Parameters ? AfterID etc.

I have no idea why he not shows the button in the context menu !!!

Thanks
Andreas
Posted 05 Aug, 2011 04:25:58 Top
Andrei Smolin


Add-in Express team


Posts: 18830
Joined: 2006-05-11
Hi Andreas,

The first section in the section mentioned above is:

In Office 2000-2007, context menus are command bars and they can be customized in the same way as any other command bar. In Office 2010, they allow us to customize context menus via the Ribbon XML. Accordingly, Add-in Express provides two components: a commandbar-based (ADXContextMenu) and Ribbon-based (ADXRibbonContextMenu).


The last statement in tht section is:

In Office 2010 and higher, you can customize both commandbar-based and Ribbon-based context menus. See http://www.add-in-express.com/docs/net-first-com-addin.php#context-menu and Step 9. Customizing context menus in Outlook.


The link above describes how to add a context menu item in Office 2010.

But the component you are using should add a context menu item, too. Please try re-registering your project.


Andrei Smolin
Add-in Express Team Leader
Posted 05 Aug, 2011 05:30:23 Top
Andreas Waning


Guest


Hello Andrei,

after re-registering it runs.

Thank you very much,
Andreas
Posted 05 Aug, 2011 08:25:33 Top