How to register ribbon button in the context menu of email body section of Explorer or Inspector window?

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

How to register ribbon button in the context menu of email body section of Explorer or Inspector window?
 
Mark Lei




Posts: 8
Joined: 2020-08-25
How to register ribbon button in the context menu of email body section of Explorer or Inspector window ?

If I developed an Outlook add-in by VSTO, I could use the XML file like below to register context menu button of email body section in many situations.

    <contextMenu idMso="ContextMenuText">
      <button id="ContextMenu_Text" label="ContextMenu_Text"/>
    </contextMenu>
    <contextMenu idMso="ContextMenuTextEdit">
      <button id="ContextMenu_TextEdit" label="ContextMenu_TextEdit"/>
    </contextMenu>
    <contextMenu idMso="ContextMenuTextTable">
      <button id="ContextMenu_TextTable" label="ContextMenu_TextTable"/>
    </contextMenu>
    <contextMenu idMso="ContextMenuList">
      <button id="ContextMenu_List" label="ContextMenu_List" />
    </contextMenu>
    <contextMenu idMso="ContextMenuReadOnlyMailText">
      <button id="ContextMenu_ReadOnlyMailText" label="ContextMenu_ReadOnlyMailText"/>
    </contextMenu>
    <contextMenu idMso="ContextMenuReadOnlyMailTable">
      <button id="ContextMenu_ReadOnlyMailTable" label="ContextMenu_ReadOnlyMailTable" />
    </contextMenu>
    <contextMenu idMso="ContextMenuReadOnlyMailTableCell">
      <button id="ContextMenu_ReadOnlyMailTableCell" label="ContextMenu_ReadOnlyMailTableCell"/>
    </contextMenu>
    <contextMenu idMso="ContextMenuReadOnlyMailListTable">
      <button id="ContextMenu_ReadOnlyMailListTable" label="ContextMenu_ReadOnlyMailListTable"/>
    </contextMenu>

However, by Add-in Express, I found no way to do that, is it right?
Posted 25 Aug, 2020 00:37:10 Top
Andrei Smolin


Add-in Express team


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

Recently, we published updated examples and the Add-in Express manual. Find examples at https://www.add-in-express.com/creating-addins-blog/2020/07/01/sample-com-addin-projects-outlook-excel-powerpoint-word/. The latest manual is at https://www.add-in-express.com/downloads/documentation.php. In the manual, check section Step #11 ?Â?Ð?ã Programming the Outlook Ribbon UI.


Andrei Smolin
Add-in Express Team Leader
Posted 25 Aug, 2020 01:12:12 Top
Mark Lei




Posts: 8
Joined: 2020-08-25
Thanks Andrei,

I used the OnRibbonBeforeCreate event, and success to add the ribbons.
Posted 25 Aug, 2020 02:33:50 Top