问题
I am a new VSTO 2015 user. I want to add a custom group to the Outlook 2010 built-in Ribbon message tab. I followed a Microsoft example.
After creating the project I added a new Item and selected the Ribbon (Visual Designer). The ribbon shows up in the designer however I cannot see the RibbonType property in the Ribbon’s property window. Therefore I cannot select the Microsoft.Outlook.Mail.Compose that will allow me to add the custom group to the message tab.
Your help is highly appreciated.
回答1:
You need to set the RibbonType to Microsoft.Outlook.Explorer. This is not the default value, once you set this property you will be able to set the Ribbon Type property.
Hope this helps.
回答2:
To see the RibbonType
property, you must select the correct part in the visual ribbon. Click on the top left part of the visual ribbon (showing the name of the Ribbon (just above "File") then you see the correct properties.
来源:https://stackoverflow.com/questions/32682312/outlook-add-in-vsto-ribbon-type-property-is-not-shown