1

I'm trying to dynamically customize the built-in Ribbon Controls on an Office2007 ribbon by adding C# objects such as RibbonTab, RibbonGroup, RibbonControl to the Ribbon. I have been unsuccessfull in disabeling any existing built-in controls, however I can add my own group. Now i'm thinking that disabling or hiding existing ones not be possible.

If anyone been able to hide a built-in control using code or the designer using .NET VSTO Office 2007 development, can you please post the code you used?

Thanks!

Todd Main
  • 28,951
  • 11
  • 82
  • 146
user77027
  • 11
  • 3

1 Answers1

1

Here is a Stackoverflow question that talks about overriding built-in ribbon commands. Here is an MSDN video that shows it as well.

Community
  • 1
  • 1
Michael Regan
  • 1,568
  • 16
  • 17
  • Thank you for the reply as I am able to hide a built-in Ribbon Group uising the Ribbon.xml and overidding the IRibbonExtensibility CreateRibbonExtensibilityObject() within the application. However, I am not able to do the same dynamically using the Microsoft.Office.Tools.Ribbon.RibbonGroup class. Althouh I am able to hide built in tabs via the Microsoft.Office.Tools.Ribbon.RibbonTab class. Any suggestions on how I can hide a built-in Group using the Microsoft.Office.Tools.Ribbon.RibbonGroup class? – user77027 Sep 14 '09 at 19:09