1
votes

I am brand new to VSTO development.I am using visual studio 2017 community edition.I need to show two buttons as a group in the Home ribbon of outlook.I tried with Ribbon control but it shows as a new tab.I want to show the buttons as a group in the Home ribbon itself

1

1 Answers

2
votes

Your controls displayed in the new tab because you specified your own id of the tab. To display your group inside existing tab you need to specify id of this tab. id attribute in this case called idMso. For main explorer tab the idMso is TabHome. Your ribbon.xml may look like ...

<customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui">
  <ribbon>
    <tabs>
      <tab idMso="TabHome">
        <group id="SampleGroup" label="Sample Group">
          <button id="Button" label="Sample Button" size="large" />
        </group>
      </tab>
    </tabs>
  </ribbon>
</customUI>

If you still puzzle yourself, the great way to start for customization of Office Ribbon XML is to read 3 parts of Customizing the 2007 Office Fluent Ribbon for Developers.