Outlook VSTO ribbon to home tabControlId

妖精的绣舞 提交于 2019-12-21 04:06:26

问题


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.


回答1:


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.



来源:https://stackoverflow.com/questions/6812966/outlook-vsto-ribbon-to-home-tabcontrolid

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!