Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Outlook VSTO ribbon to home tabControlId

I'm writing a VSTO Microsoft Outlook plug-in. The version destination of that plugin is Outlook 2007 and 2010, so I use the Outlook 2007 add-in (in Visual Studio).

I have some (visual) problem with ActiveMenuBar. In Outlook 2007 it works fine, but in 2010 the ActiveMenuBar doesn't exist; it is replaced with tabControl and ribbons.

I would like to check the version (Application.Version) and if the version is 14 (Outlook 2010) then don't add an item into ActiveMenuBar, but add a ribbon to the Home tabPage.

How do I add the Ribbon into the Home tab page? For example, if I add a ribbon to the Message tab page, I set the ribbonControl.OfficeId to "TabReadMessage", but I can't find the OfficeId of the Home tab.

like image 450
adamowski Avatar asked Jul 25 '11 07:07

adamowski


People also ask

How do I add a Vsto to Outlook?

On the File menu, point to New, and then click Project. In the templates pane, expand Visual C# or Visual Basic, and then expand Office/SharePoint. Under the expanded Office/SharePoint node, select the Office Add-ins node. In the list of project templates, choose an Outlook VSTO Add-in project.

What is outlook VSTO?

for Microsoft Outlook. Add-in Express Toys VSTO is a free sample addin / plugin for Microsoft Outlook 2003, 2007 and 2010. The add-in gives you an example of how to create custom command bars for Outlook Explorer and Outlook Inspector, get access to Outlook objects and add custom option and property pages.

How to add ribbon to compose mail tab in outlook?

A complete list of all other ribbon names can be found in 2007 Office System Document: Lists of Control IDs and in Office 2010 Help Files: Office Fluent User Interface Control Identifiers. Show activity on this post. set Controllid "TabNewMailMessage" and Select Ribbon Type form Outlook.mail.Compose.Then you will get a addin in compose mail tab

How do I add ribbongroups to the existing home ribbon?

Set the 'ControlId' property (ribbon designer properties) or the idMso (ribbon XML) to TabHome ( Edit: TabMail in Outlook 2010 and Outlook 2013 ). The ribbongroups on your ribbon will then be added to the existing Home ribbon.

Where can I find the ribbon in outlook?

Outlook displays the ribbon in the main application user interface (UI) and in windows that open when users perform certain tasks, such as creating e-mail messages. These application windows are named inspectors. Applies to: The information in this topic applies to VSTO Add-in projects for Outlook.

What is a ribboncontrolid?

A RibbonControlId that contains the unique name by which Office refers to the tab. The ControlId value can identify either an Office built-in control (by using an idMSO value) or a custom control.


2 Answers

Set the 'ControlId' property (ribbon designer properties) or the idMso (ribbon XML) to TabHome (Edit: TabMail in Outlook 2010 and Outlook 2013). The ribbongroups on your ribbon will then be added to the existing Home ribbon.

A complete list of all other ribbon names can be found in 2007 Office System Document: Lists of Control IDs and in Office 2010 Help Files: Office Fluent User Interface Control Identifiers.

like image 76
Eddy Avatar answered Oct 19 '22 23:10

Eddy


set Controllid "TabNewMailMessage" and Select Ribbon Type form Outlook.mail.Compose.Then you will get a addin in compose mail tab

like image 24
Rohini Avatar answered Oct 20 '22 00:10

Rohini