Transferring VSTO Tape to the main tabControlId

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

I have a (visual) problem with ActiveMenuBar. It works fine in Outlook 2007, but in 2010 ActiveMenuBar does not exist; It is replaced by tabControl and ribbons.

I want to check the version ( Application.Version ), and if version 14 (Outlook 2010), then do not add the item to ActiveMenuBar, but add the ribbon to the Home tab ..

How to add a feed to the Home tab? For example, if I add a ribbon to the Message tab, I set ribbonControl.OfficeId to "TabReadMessage", but I cannot find the OfficeId from the Main tab.

+6
source share
1 answer

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

For a complete list of all other tape names, see Office 2007 System Document: Management Identity Lists and Office 2010 Help Files: Office Fluent UI Management Identifiers .

+6
source

Source: https://habr.com/ru/post/893481/


All Articles