Office Ribbon functionality
-
Hi everyone Pleasae can someone help me. I have created a custom ribbon and am trying to implement it in an ExcaleAddIn and have created all the neccessary xml for it along with it's events as follows: <pre><?xml version="1.0" encoding="UTF-8"?> <customUI onLoad="Ribbon_Load" xmlns="http://schemas.microsoft.com/office/2006/01/customui"> <ribbon> <tabs> <tab idMso="TabAddIns" label="ValueExplorer"> <group id="grpModel" label="Model Manager"> <button id="btnOpenModel" onAction="btnOpenModel_Click" label="Open Model" showImage="false" /> <button id="btnNewModel" onAction="btnNewModel_Click" label="New Model" showImage="false" /> <button id="btnPublish" onAction="btnPublish_Click" label="Publish VXP Model" showImage="false" /> </group> <group id="grpVersion" label="Version Manager"> <button id="btnNewVersion" onAction="btnNewVersion_Click" label="New Version" showImage="false" /> <button id="btnOpenVersion" onAction="btnOpenVersion_Click" label="Open Version" showImage="false" /> </group> <group id="grpObject" label="Object Manager"> <button id="btnNewObject" onAction="btnNewObject_Click" label="New Object" showImage="false" /> <button id="btnOpenObject" onAction="btnOpenObject_Click" label="Open Object" showImage="false" /> </group> <group id="grpUser" label="User Manager"> <button id="btnNewUser" onAction="btnNewUser_Click" label="New User" showImage="false" /> <button id="btnEditUser" onAction="btnEditUser_Click" label="Edit User" showImage="false" /> </group> <group id="grpScenario" label="Scenario Manager"> <button id="btnNewScenario" onAction="btnNewScenario_Click" label="New Scenario" showImage="false" /> <button id="btnActivate" onAction="btnActivate_Click" label="Activate" showImage="false" /> <button id="btnVarience" onAction="btnVarience_Click" label="Varience Report" showImage="false" /> <separator id="separator1" /> <button id="btnOpenScenario" onAction="btnOpenScenario_Click" label="Open Scenario" showImage="false" /> <button id="btnGroup" onAction="btnGroup_Click" label="Group Scenarios" showImage="false" /> <button id="btnSaveScenario" onAction="btnSaveScenario_Click" label="Save Scenario" showImage="false" /> </group> <group id="grpSensitivity" label="Sensitivity Manager"> <button id="btnNewSensitivity" onAction="btnNewSensitivity_Click" label="New Sensitivity" showImag
-
Hi everyone Pleasae can someone help me. I have created a custom ribbon and am trying to implement it in an ExcaleAddIn and have created all the neccessary xml for it along with it's events as follows: <pre><?xml version="1.0" encoding="UTF-8"?> <customUI onLoad="Ribbon_Load" xmlns="http://schemas.microsoft.com/office/2006/01/customui"> <ribbon> <tabs> <tab idMso="TabAddIns" label="ValueExplorer"> <group id="grpModel" label="Model Manager"> <button id="btnOpenModel" onAction="btnOpenModel_Click" label="Open Model" showImage="false" /> <button id="btnNewModel" onAction="btnNewModel_Click" label="New Model" showImage="false" /> <button id="btnPublish" onAction="btnPublish_Click" label="Publish VXP Model" showImage="false" /> </group> <group id="grpVersion" label="Version Manager"> <button id="btnNewVersion" onAction="btnNewVersion_Click" label="New Version" showImage="false" /> <button id="btnOpenVersion" onAction="btnOpenVersion_Click" label="Open Version" showImage="false" /> </group> <group id="grpObject" label="Object Manager"> <button id="btnNewObject" onAction="btnNewObject_Click" label="New Object" showImage="false" /> <button id="btnOpenObject" onAction="btnOpenObject_Click" label="Open Object" showImage="false" /> </group> <group id="grpUser" label="User Manager"> <button id="btnNewUser" onAction="btnNewUser_Click" label="New User" showImage="false" /> <button id="btnEditUser" onAction="btnEditUser_Click" label="Edit User" showImage="false" /> </group> <group id="grpScenario" label="Scenario Manager"> <button id="btnNewScenario" onAction="btnNewScenario_Click" label="New Scenario" showImage="false" /> <button id="btnActivate" onAction="btnActivate_Click" label="Activate" showImage="false" /> <button id="btnVarience" onAction="btnVarience_Click" label="Varience Report" showImage="false" /> <separator id="separator1" /> <button id="btnOpenScenario" onAction="btnOpenScenario_Click" label="Open Scenario" showImage="false" /> <button id="btnGroup" onAction="btnGroup_Click" label="Group Scenarios" showImage="false" /> <button id="btnSaveScenario" onAction="btnSaveScenario_Click" label="Save Scenario" showImage="false" /> </group> <group id="grpSensitivity" label="Sensitivity Manager"> <button id="btnNewSensitivity" onAction="btnNewSensitivity_Click" label="New Sensitivity" showImag
hello, I also did the same code but no message box is appearing on my button click in Ribbon, can any one tell me how to code call back method following is the code of my method which i wrote in Ribbon1.cs :
private void button1_Click(object sender, RibbonControlEventArgs e)
{
MessageBox.Show("Hello");
}i would like to call this so can you tell me how to do it, i exported the ribbon to Xml and also added the "OnAction" attribute to button control in xml. But still not working........???? :^)