Reputation: 264
I have created a custom Add-In for 2007/2010 and 2013. The addin - custom control appears well and neatly each time a new window is opened up / popuped. We can see the ribbon in the "Message Tab".
However if we try to an in-line or in response in 2013. The ribbon doesnt appear in the ribbon.
The development is all done using the VSTO code. (Am not looking for any 3rd party tool) I cannot switch over to XML based control at this stage.
Upvotes: 1
Views: 1200
Reputation: 31
This is great and works for me.
<contextualTabs>
<tabSet idMso="TabComposeTools">
<tab idMso="TabMessage">
<group id="TabMessageGroup" label="Group Name">
<button id="MessageButton" onAction="msgButton_Click" size="large" getImage="Favicon_GetImage" getLabel="GetRibbonLabel" />
</group>
</tab>
</tabSet>
</contextualTabs>
Joe
Upvotes: 0
Reputation: 49435
You need to use the TabComposeTools idMso value for the tabSet attribute and the TabMessage value for the IdMso property of the tab attribute. For example, you can use the following markup:
<customUI onLoad="Ribbon_Load" xmlns="http://schemas.microsoft.com/office/2006/01/customui">
<ribbon>
<contextualTabs>
<tabSet idMso="TabComposeTools">
<tab idMso="TabMessage">
// your controls go there
</tab>
</tabSet>
</contextualTabs>
</ribbon>
The Ribbon designer doesn't support this.
Upvotes: 4