Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Office Ribbon functionality

Office Ribbon functionality

Scheduled Pinned Locked Moved C#
comxmlhelpquestionannouncement
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • W Offline
    W Offline
    windhopper
    wrote on last edited by
    #1

    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

    M 1 Reply Last reply
    0
    • W windhopper

      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

      M Offline
      M Offline
      mandar777
      wrote on last edited by
      #2

      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........???? :^)

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups