Reputation: 77
I'm trying to create a VSTO Add-in for word that has a button in the ribbon and also a custom button in the context menu.
I know you can add multiple Ribbon XML files for outlook using different ribbonIds but AFAIK word only has one context.
Upvotes: 0
Views: 775
Reputation: 49395
You are right, Word unlike Outlook doesn't differentiate ribbon contexts. You must return a single XML markup at once.
By default, if a VSTO Add-in attempts to manipulate the Microsoft Office user interface (UI) and fails, no error message is displayed. However, you can configure Microsoft Office applications to display messages for errors that relate to the UI. You can use these messages to help determine why a custom ribbon does not appear, or why a ribbon appears but no controls appear.
To show VSTO Add-in user interface errors:
Anyway, you need to make sure that you have:
A correct namespace declared:
A child XML inside the customUI element contains the declaration of contextMenus
.
Upvotes: 1