Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Adding a Tab to the Outlook 2010 Ribbon?

I'm trying to create an Outlook 2010 addin that adds a new tab to the ribbon. I found out how I can add my groups to an existing tab by setting the OfficeId to "TabMail" or something built-in, but I don't want to modify existing tabs.

I've now set the OfficeId that something of my own ("TabMyAddin"), but it doesn't show up in Outlook. I wonder if I need to somehow tell Outlook to add it and show it, or how I would proceed?

The RibbonType was changed to Microsoft.Outlook.Explorer if that matters.

like image 448
Michael Stum Avatar asked Dec 09 '09 01:12

Michael Stum


2 Answers

Okay, got it:

  • In the Visual Ribbon Designer, the ControlId property needs to be set to "Custom" instead of Office. When set to Office, it will set idMso to the given OfficeId and when set to Custom, it will instead set the id.
  • In the XML Ribbon Designer, the <tab> needs to have an id instead of an idMso.
like image 166
Michael Stum Avatar answered Sep 28 '22 10:09

Michael Stum


The only way that I can get it to work is by setting the ControlID to custom and changing the RibbonType to Microsoft.Outlook.Explorer.

like image 33
Greg Jordan Avatar answered Sep 28 '22 09:09

Greg Jordan