Is it possible to load the controls on the ribbon dynamically while document opening in word addin. RRS feed

  • Question

  • Hi

    I need to  load the ribbon control when the document openings dynamically. I have some document properties in the word document. when the properties are exists on that document then only i need to load the ribbon control dynamically. Please can any one help me how can i achive this.


    Thanks in advance


    Monday, July 25, 2011 11:23 AM


  • Hello Mukunda,

    This isn't possible because ribbon is mostly static. The only Ribbon control providing some sort of dynamicality is Ribbon Dynamic Menu; it provides an event that allows populating the menu dynamically. With all other controls, you need to create them beforehand and show/hide them when required. No other ways exists.

    Regards from Belarus (GMT + 2),

    Andrei Smolin
    Add-in Express Team Leader
    Monday, July 25, 2011 11:28 AM