This project has moved. For the latest updates, please go here.

Ribbon control access

Jul 17, 2012 at 7:32 PM

hi Sebestian,

I am working on a proof of concept for com addin. I have created com addin with some ribbon controls. I have used your COMAddinRibbonExample to create the ribbon.

I have a ribbon with 2 buttons(button 1 and button2). When I click on the button1 I add Custom Task Pane (Panel1) to the workbook. When I click on button2 it adds another panel (Panel2) to the workbook. Now when I click on a button on Panel2 it should add another button to ribbon called button3 and disable the button1 and button2..

Basically I want to manipulate the buttons on ribbon control i.e. name,image and state at runtime depending on the task pane selected. I have looked through all the examples and discussion forum but so far I have not found any code to gain access to the ribbon controls in the addin.

Could you please provide some suggestion/ pointers as to how I can achieve that with NetOffice 1.5.1

regards,

Tanveer