none
Outlook 2010 Read Message Ribbon does not show custom button RRS feed

  • Question

  • I am trying to add custom buttons to the Outlook Explorer home ribbon and the email read ribbon using the following customUI XML below.  The button shows up on the home ribbon but not on the ribbon when an email is opened for reading.  Am I using the incorrect idMSO for the message ribbon?

     <tabs>
    
          <tab idMso="TabMail">
    
            <group id="EnvMailGroup">
    
              <button id="EnvShowServiceRequest" getVisible="IsShowServiceRequestMenuItemVisible"
    
                      supertip="Show service request details"
    
                      size="large"
    
                      imageMso="ControlsGalleryInfoPath"
    
                      label="Service Request Details"
    
                      onAction="ShowServiceRequest"/>
    
            </group>
    
          </tab>
    
          
    
          <tab idMso="TabReadMessage">
    
            <group id="EnvReadMessageGroup">
    
              <button id="EnvReadMessageShowServiceRequest" getVisible="IsShowServiceRequestMenuItemVisible"
    
                      supertip="Show service request details"
    
                      size="large"
    
                      imageMso="ControlsGalleryInfoPath"
    
                      label="Service Request Details"
    
                      onAction="ShowServiceRequest"/>
    
            </group>
    
          </tab>
    
    </tabs>

     

     

     


    Ajay Agrawal
    • Edited by ajay006 Wednesday, September 28, 2011 8:02 PM
    Wednesday, September 28, 2011 8:01 PM

Answers

  • Yes, but what is "TabMail"? That's not present for mail items opened for reading. I'd bet you're getting a ribbon exception. Do you have the setting to display UI errors turned on from the Advanced Options tab in the Options property pages? See if you're getting any UI errors when the ribbon XML is requested.

    --
    Ken Slovak
    MVP - Outlook
    http://www.slovaktech.com
    Author: Professional Programming Outlook 2007
     
     
    "ajay006" <=?utf-8?B?YWpheTAwNg==?=> wrote in message news:83d6b58e-bbf6-43a3-ab4c-a9870d055720...

    Ken,

    I am using  <tab idMso="TabReadMessage">.   The same thing you suggested. 

    There are two <tab> nodes in my file.  The first one is using TabMail and the second one is TabReadMessage.

    Ajay


    Ajay Agrawal

    Ken Slovak MVP - Outlook
    • Marked as answer by ajay006 Friday, September 30, 2011 5:50 PM
    Friday, September 30, 2011 5:17 PM

All replies

  • <tab idMso="TabReadMessage">

    The Office Developer Web site has downloads for the schemas for all the ribbons, for both 2007 and 2010.

    --
    Ken Slovak
    MVP - Outlook
    http://www.slovaktech.com
    Author: Professional Programming Outlook 2007
     
     
    "ajay006" <=?utf-8?B?YWpheTAwNg==?=> wrote in message news:1cddac1a-b3d9-494b-a97c-23af80746bfd...

    I am trying to add custom buttons to the Outlook Explorer home ribbon and the email read ribbon using the following customUI XML below.  The button shows up on the home ribbon but not on the ribbon when an email is opened for reading.  Am I using the incorrect idMSO for the message ribbon?

     <tabs>
    
          <tab idMso="TabMail">
    
            <group id="EnvMailGroup">
    
              <button id="EnvShowServiceRequest" getVisible="IsShowServiceRequestMenuItemVisible"
    
                      supertip="Show service request details"
    
                      size="large"
    
                      imageMso="ControlsGalleryInfoPath"
    
                      label="Service Request Details"
    
                      onAction="ShowServiceRequest"/>
    
            </group>
    
          </tab>
    
          
    
          <tab idMso="TabReadMessage">
    
            <group id="EnvReadMessageGroup">
    
              <button id="EnvReadMessageShowServiceRequest" getVisible="IsShowServiceRequestMenuItemVisible"
    
                      supertip="Show service request details"
    
                      size="large"
    
                      imageMso="ControlsGalleryInfoPath"
    
                      label="Service Request Details"
    
                      onAction="ShowServiceRequest"/>
    
            </group>
    
          </tab>
    
    </tabs>

     

     

     


    Ajay Agrawal

    Ken Slovak MVP - Outlook
    Wednesday, September 28, 2011 8:56 PM
  • Then I am using the correct idMSO.   Why would not the button show up? 
    Ajay Agrawal
    Friday, September 30, 2011 4:14 PM
  • Read my post again, the correct idMso is this, not what you're using:
     
    <tab idMso="TabReadMessage">

    --
    Ken Slovak
    MVP - Outlook
    http://www.slovaktech.com
    Author: Professional Programming Outlook 2007
     
     
    "ajay006" <=?utf-8?B?YWpheTAwNg==?=> wrote in message news:91bd1cf4-e963-43ac-a19f-d215882817d2...
    Then I am using the correct idMSO.   Why would not the button show up? 
    Ajay Agrawal

    Ken Slovak MVP - Outlook
    Friday, September 30, 2011 5:07 PM
  • Ken,

    I am using  <tab idMso="TabReadMessage">.   The same thing you suggested. 

    There are two <tab> nodes in my file.  The first one is using TabMail and the second one is TabReadMessage.

    Ajay


    Ajay Agrawal
    Friday, September 30, 2011 5:11 PM
  • Yes, but what is "TabMail"? That's not present for mail items opened for reading. I'd bet you're getting a ribbon exception. Do you have the setting to display UI errors turned on from the Advanced Options tab in the Options property pages? See if you're getting any UI errors when the ribbon XML is requested.

    --
    Ken Slovak
    MVP - Outlook
    http://www.slovaktech.com
    Author: Professional Programming Outlook 2007
     
     
    "ajay006" <=?utf-8?B?YWpheTAwNg==?=> wrote in message news:83d6b58e-bbf6-43a3-ab4c-a9870d055720...

    Ken,

    I am using  <tab idMso="TabReadMessage">.   The same thing you suggested. 

    There are two <tab> nodes in my file.  The first one is using TabMail and the second one is TabReadMessage.

    Ajay


    Ajay Agrawal

    Ken Slovak MVP - Outlook
    • Marked as answer by ajay006 Friday, September 30, 2011 5:50 PM
    Friday, September 30, 2011 5:17 PM
  • Ken,

    Thanks.  Turning on the option to display UI errors helped.

    Now I have separate XML files for each ribbon and each calls a separate ribbon_load method.  Thus I have a ribbon object for each ribbon in memory.  I am invalidating the ReadMessage ribbon in the Mail.Open event callback and it turns no/off the buttons as required!

    Ajay


    Ajay Agrawal
    Friday, September 30, 2011 5:50 PM