When I write an outlook addin with ribbon. I add a new group to tab 'MESSAGE'. It work when I Create new Email with Popup. But it does not work when reply Email.
Here is my source
<?xml version="1.0" encoding="UTF-8"?>
<customUI xmlns="http://schemas.microsoft.com/office/2009/07/customui" onLoad="Ribbon_Load">
<ribbon>
<tabs>
<tab idMso="TabNewMailMessage">
<group id="MyGroup"
label="My Group">
</group>
</tab>
<tab idMso="TabReadMessage">
<group id="MyGroup1"
label="My Group1">
</group>
</tab>
</tabs>
</ribbon>
</customUI>
Do you get any UI errors in Outlook? See How to: Show Add-in User Interface Errors for more information.
There is no TabReadMessage, you need to use TabNewMailMessage instead. But not together in the same context.
You need to return the XML markup of your custom ribbon UI in the GetCustomUI method of the IRibbonExtensibility interface for the appropriate context only. See Extending the User Interface in Outlook 2010 for more information.
Read more about the Fluent UI (aka Ribbon UI) in the following series of articles in MSDN:
Customizing the 2007 Office Fluent Ribbon for Developers (Part 1 of 3)
Customizing the 2007 Office Fluent Ribbon for Developers (Part 2 of 3)
Customizing the 2007 Office Fluent Ribbon for Developers (Part 3 of 3)
Related
I have a custom XML ribbon tab in a VSTO Excel Add-in. The XML for the custom ribbon tab is below.
<?xml version="1.0" encoding="UTF-8"?>
<customUI xmlns="http://schemas.microsoft.com/office/2009/07/customui" onLoad="Ribbon_Load">
<ribbon>
<tabs>
<tab idMso="TabAddIns" label="EMP">
<group id="EMPForms" label="Measurement Study">
<button id="EMPStudy"
label="EMP Study"
screentip="EMP Data"
supertip="Measurement Study Data"
onAction="OnEMPData"/>
<button id="StudySetup"
label="Study Setup"
screentip="Setup"
supertip="Measurement Study Setup"
onAction="OnStudySetup"/>
</group>
</tab>
</tabs>
</ribbon>
</customUI>
There is only one group specified in the XML.
When I run the Add-in, I get two groups. The first is "Custom Toolbars". The second is "Measurement Study". The "Custom Toolbars" is not specified in the XML below.
Is there a way to prevent groups or controls from other ribbon tabs from appearing on a custom ribbon tab?
Try to check out other add-ins and Excel documents (they may contain a custom ribbon UI).
There is no way to hide controls or groups on a custom ribbon tab if you don't know their IDs. The best what you can do is to use the startFromScratch attribute which allows hiding the built-in ribbon controls. Read more about the Fluent UI (aka Ribbon UI) in the following series of articles:
Customizing the 2007 Office Fluent Ribbon for Developers (Part 1 of 3)
Customizing the 2007 Office Fluent Ribbon for Developers (Part 2 of 3)
Customizing the 2007 Office Fluent Ribbon for Developers (Part 3 of 3)
The source of the "Custom Toolbar" group on my custom ribbon is the "Team Foundations Add-in".
Below are the steps that resolved this issue.
Start Excel.
Go to File | Options.
Click the "Add-ins" item in the list box on the left-hand side of the Excel Options dialog.
Select the "COM Add-ins" item of the Manage combo box.
Click the "Go..." button.
Clear the check box for the "Team Foundation Add-in" entry and click the "OK" button.
The "Custom Toolbars" group is no longer in the custom ribbon tab.
I am writing a outlook addin using vsto and c#
I have a xml ribbon bar containing some information that I need to show to the user. For example the xml looks like this:
<?xml version="1.0" encoding="UTF-8"?>
<customUI xmlns="http://schemas.microsoft.com/office/2009/07/customui" onLoad="Ribbon_Load">
<ribbon>
<tabs>
<tab idMso="TabAddIns" label="NEW_TAB">
<group id="StatsGroup" label="Statistics">
<labelControl id="lblSmallText" label="Stats are: "/>
<labelControl id="lblNormalText" label="Dollars Saved"/>
<labelControl id="lblBigText" label="$12345"/>
<!--
<labelControl id="lblNormalText" label="as of today"/>
-->
</group>
</tab>
</tabs>
</ribbon>
</customUI>
I need to INCREASE the font size of one of the labelControl OR alternatively at least be able to change the font or background color to bring the user's attention to it.
I tried adding font attributes in the xml but it is having no effect.
The Fluent UI (aka Ribbon UI) doesn't provide anything for that. Read more about all available attributes and callbacks in the following series of articles:
Customizing the 2007 Office Fluent Ribbon for Developers (Part 1 of 3)
Customizing the 2007 Office Fluent Ribbon for Developers (Part 2 of 3)
Customizing the 2007 Office Fluent Ribbon for Developers (Part 3 of 3)
If you need to show a custom UI to a user in Outlook consider using Outlook Form Regions instead, see Creating Outlook Form Regions for more information. In that case you will be able to use any .net controls.
I am trying to hide Built-In Groups (GroupContactsNew) in TabContacts. I have tried below CustomUI but "getTabContactGroupEnabled" never fires.
Does anyone knows how to do this? BTW: I was able to make entire "TabContacts" tab invisible by registering "getVisible" callback method at tab level.
<?xml version="1.0" encoding="utf-8" ?>
<customUI xmlns="http://schemas.microsoft.com/office/2009/07/customui" onLoad="Ribbon_Load">
<ribbon startFromScratch="false">
<tabs>
<tab idMso="TabContacts">
<group idMso="GroupContactsNew" getEnabled="getTabContactGroupEnabled">
</group>
</tab>
</tabs>
Regards,
Ramesh
Ramesh,
You need to rebuild the UI from scratch setting the startFromScratch attribute to true and defining tabs, groups and controls anew, declaring them with the idMso values. In that case you will be able to handle callbacks of the built-in controls.
Read more about the Ribbon UI (aka Fluent UI) in the following series of articles in MSDN:
Customizing the 2007 Office Fluent Ribbon for Developers (Part 1 of 3)
Customizing the 2007 Office Fluent Ribbon for Developers (Part 2 of 3)
Customizing the 2007 Office Fluent Ribbon for Developers (Part 3 of 3)
I have an Outlook add-in that has been used for the last couple of years. When creating a new email, I had added a group of controls to the ribbon that would appear on the inspector window.
With the advent of Outlook 2013 and the in-line response feature, these controls do not appear on the ribbon. There is a new message contextual tab that shows when the in-line response is activated, and ideally this is where I would have the controls show.
The RibbonType used for the existing controls is Microsoft.Outlook.Mail.Compose, but I cannot see any option for the contextual in-line response.
The only solutions I have found on the Internet use Add-in Express but I'm just using VSTO.
Does anybody know how I can get my controls to show on the contextual ribbon?
It is possible with the Ribbon xml, not with the designer !
<customUI onLoad="Ribbon_Load" xmlns="http://schemas.microsoft.com/office/2006/01/customui">
<ribbon>
<contextualTabs>
<tabSet idMso="TabComposeTools">
<tab idMso="TabMessage">
##Place your content here##
</tab>
</tabSet>
</contextualTabs>
</ribbon>
</customUI>
I am able to open a Word document from within my VB 2010 application. I need to hide the MS Office ribbon and set the Show Ruler option to false upon opening the document. Is there a way to do it?
Try adding ribbon <startFromScratch = "true"> at the begining of the ribbon xml code. The code might look something like this:
<customUI xmlns="http://schemas.microsoft.com/office/2009/07/customui">
<ribbon startFromScratch="true">
'your code here
</ribbon>
</customUI>