Search code examples
c#ms-wordms-officevstoribbon

VSTO Word 2010 Ribbon for multiple documents


I'm looking for a way to create new instances of my ribbon class for each new word document.

I did play around with a button and a label and to my suprise, every word instance shows up the same data! I want to show some data from the documents.

Is it possible to tell the addin to construct a new ribbon class for every document ?


Solution

  • Start different application of Word 2010 for each of your doc.

    Or

    Subscribe to Document Activate event and update ribbon when document is activated.

    Office 2013 and behaves differntly than previous versions in terms of Ribbon and document management.