I have two ribbons that I wish to load, one on the main ribbon and one in the backstage. I have to load the two within a override method but I am having troubles:
protected override Microsoft.Office.Core.IRibbonExtensibility CreateRibbonExtensibilityObject()
{
return Globals.Factory.GetRibbonFactory().CreateRibbonManager(new Microsoft.Office.Tools.Ribbon.IRibbonExtension[]
{
new Ribbon1(),
new Backstage() as Microsoft.Office.Tools.Ribbon.IRibbonExtension
});
}
If I do this Ribbon1 will show but the Backstage will not, if I do it this way:
protected override Microsoft.Office.Core.IRibbonExtensibility CreateRibbonExtensibilityObject()
{
return new Microsoft.Office.Tools.Ribbon.RibbonManager(new Microsoft.Office.Tools.Ribbon.OfficeRibbon[]
{
new Ribbon1() as Microsoft.Office.Tools.Ribbon.OfficeRibbon,
new Backstage() as Microsoft.Office.Tools.Ribbon.OfficeRibbon
});
}
I cannot create an instance of the abstract class or interface with the RibbonManager. I am stuck, can someone help out?