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.
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.
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.
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
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.
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.
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.
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.
set Controllid "TabNewMailMessage" and Select Ribbon Type form Outlook.mail.Compose.Then you will get a addin in compose mail tab
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With