none
Customize the Options in File tab Word 2013 RRS feed

  • Question

  • Hello,

    I would like to hide few of the options displayed under the file tab.

    For instance, I would like to show only the "Options" and hide other items, how do I do it using the CustomRibbon.xml?

    Thanks,

    Ramesh

    

    Thursday, August 20, 2015 1:23 PM

Answers

All replies

  • Hello Ramesh,

    You can specify the visible attribute for the tab element in the XML markup. For example, to hide the Print tab on the Backstage UI you can use the following markup:

    <customUI xmlns="http://schemas.microsoft.com/office/2009/07/customui" onLoad="ribbonLoaded" loadImage="getImages">
      <backstage onShow="backstageOnShow" onHide="backstageOnHide">
        <tab idMso="TabPrint" label="BackstageTab1" visible="false" />
      </backstage>
    </customUI>

    Read more about the Backstage UI in the following articles in MSDN:

    Introduction to the Office 2010 Backstage View for Developers

    Customizing the Office 2010 Backstage View for Developers

    See Office 2013 Help Files: Office Fluent User Interface Control Identifiers for IdMso values.


    Thursday, August 20, 2015 2:09 PM
  • Hi Eugene,

    This does not seem to work.
    Am using this in an addin project. and the addin does not load properly, when I include the backstage section the CustomRibbon.Xml

    And all the options are available for the user.

    My CustomRibbon.Xml looks something as mentioned below

    <customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui" onLoad="Ribbon_Load">

     <ribbon startFromScratch="true">.

    .

    .

    </ribbon>
         <backstage>
            <button idMso="FileSave" visible="false"/>
            <button idMso="FileSaveAs" visible="false"/>
            <button idMso="FileOpen" visible="false"/>
            <button idMso="FileClose" visible="false"/>
            <button idMso="ApplicationOptionsDialog" visible="false"/>
            <button idMso="FileExit" visible="false"/>
            <tab idMso="TabInfo" visible="false"/>
            <tab idMso="TabRecent" visible="false"/>
            <tab idMso="TabNew" visible="false"/>
            <tab idMso="TabPrint" visible="false"/>
            <tab idMso="TabShare" visible="false"/>
            <tab idMso="TabHelp" visible="false"/>
            <tab idMso="TabPublish" visible="false"/>
            <tab idMso="TabSave" visible="false"/>
            <tab idMso="TabOfficeStart" visible="false"/>
        </backstage>
    </customUI>

    Wednesday, August 26, 2015 12:28 PM
  • You use an old namespace in the markup - http://schemas.microsoft.com/office/2006/01/customui.

    Take a look at the articles I mentioned in the previous post for more information.

    Wednesday, August 26, 2015 1:08 PM
  • Updating the namespace made it to work!
    Thursday, August 27, 2015 9:25 AM