none
OneNote Custom XML - Menu Drop Down Button Syntax RRS feed

  • Question

  •  

    Hi friends,

     

    I am trying to make a menu button in OneNote Ribbon - I have put in my Custom UI XML the snippet below

     

     

    <mso:menu id="SubMenu1" label="My Menu" imageMso="AppointmentColor10">

    <mso:control idQ="test1" visible="true"/>

    <mso:control idQ="test2" visible="true"/>

    </mso:menu>

     

    Is this the correct format

     

    My Custom xml ribbon crashed :(


    Cheers Dan :)

    Sunday, May 7, 2017 12:16 AM

All replies

  • Hi Dan_CS,

    did you try to use code like below? if not try it.

      <comboBox id="Combo1" label="My ComboBox" 
                onChange="ThisDocument.MyComboBoxMacro">
                <item id="Zip1" label="33455" />
                <item id="Zip2" label="81611" />
                <item id="Zip3" label="31561" />
              </comboBox>

    Reference:

    Customizing the 2007 Office Fluent Ribbon for Developers (Part 1 of 3)

    Customizing the 2007 Office Fluent Ribbon for Developers (Part 2 of 3)

    Customizing the 2007 Office Fluent Ribbon for Developers (Part 3 of 3)

    how to add custom ribbon tab in onenote using c#

    also let me know that which type of project you are using to develop this ribbon.

    Regards

    Deepak


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Monday, May 8, 2017 9:37 AM
    Moderator
  • Hi Deepak,

     

    Its a ribbon for OneNote -  when i export the ribbon Customisations - I am adding to the custom xml file.

     

    I would like to make a sub menu system

     

    <mso:cmd app="OneNote" dt="0" />

     

    <mso:ribbon>

    <mso:qat>

    <mso:sharedControls>

    <mso:control idQ="mso:ViewGoForward" visible="false" insertBeforeQ="mso:ViewGoBack"/>

    <mso:control idQ="mso:UndoButton" visible="false" insertBeforeQ="mso:ViewGoBack"/>

    <mso:control idQ="mso:RedoButton" visible="false" insertBeforeQ="mso:ViewGoBack"/>

    I just want to know how to add a menu drop down that works in oneNote

    I dont know how to use c#.

    Please can you show me where in the documentation i can add a drop down menu for ONENOTE , not word or excel

    thank you


    Cheers Dan :)

    Monday, May 8, 2017 10:39 PM
  • Hi Dan_CS,

    I try to find the documentation, but I did not get any documentation to add XML file to add Ribbon in OneNote.

    I also did not find the way to insert the Ribbon XML using Custom UI Editor Tool or with VSTO or any other way.

    I will try to search further and if I find the useful documentation then I will try to provide you.

    Thanks for your understanding.

    Regards

    Deepak


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Wednesday, May 10, 2017 9:28 AM
    Moderator