I've create two buttons in my Word add-in ribbon : button1 and button2
when I open a doc of type 1 I just display the button1 and same thing when I open a second type of doc I just display button2.
the problem is when I open for example the first document, and I leave it open, and After I open the second document with the second type I always find the button1 in the ribbon.
how can I force the second document to display button2 and not button1 even if the first document is still open.
During the document change event invalidate(refresh) the ribbon.