Selecting which Ribbon to display for a Custom Task Form

  • Thread starter Thread starter GraemeWT
  • Start date Start date
G

GraemeWT

I have a Visual Studio 2008 VSTO project for an Office Outlook AddIn.
I have created a Custom Form Region for a Customer Task object named
“IPM.Task.Wizardâ€.
I have a Ribbon that I want to be used when I display a customer task object
in my Custom Form.
Can someone explain how I can do this....
I have seen discussion on using the CreateRibbonExtensibilityObject viz:
protected override
Microsoft.Office.Core.IRibbonExtensibility
CreateRibbonExtensibilityObject() {}
And also on using the IRibbonExtensibility interface viz:
public partial class ThisAddIn : Office.IRibbonExtensibility
But I have not managed to discover exactly how to implement these patterns
in my project.
I think I need to do something in the New_Inspector event handler!!
 
You need to create the ribbon XML for your custom ribbon and supply that to
the ribbon callback GetCustomUI() when it's called. See the articles on
ribbon customization at
http://msdn.microsoft.com/en-us/library/aa338202.aspx.

There are also VSTO 2005 SE templates for C# and VB.NET that show ribbon
customizations on my Web site at
http://www.slovaktech.com/outlook_2007_templates.htm, and various VSTO 2005
SE samples for download at the Office Developer Web site at MSDN. There are
also ribbon samples at www.outlookcode.com.
 
Back
Top