none
How to remove built-in ribbon tabs in Word 2010 - Ribbon Designer? RRS feed

Answers

All replies

  • Hi Tim,

    Thanks for posting in the MSDN Forum.

    As fa as I know, that Ribbon Designer will not allow people hide or show tab after ThisAddIn_Startup method has been done. So Application_WindowActivate & Application_WindowDeactivate events will not affect it.

    I hope what I said can help you.

    Have a good day,

    Tom


    Tom Xu [MSFT]
    MSDN Community Support | Feedback to us

    Wednesday, March 21, 2012 5:51 AM
    Moderator
  • Hi Tim,

    see:

    http://social.msdn.microsoft.com/Forums/en-US/vsto/thread/332d3a79-1aea-45b7-be3c-8fefacbde9be

    But normally the User should have all the Standard Office functionality, to give the user a good experience.

    Greets - Helmut


    Helmut Obertanner [http://www.obertanner.de] [http://www.outlooksharp.de]

    Wednesday, March 21, 2012 7:03 AM
    Answerer
  • Tom


    Thanks for the reply.

    I am currently using the Application_WindowActivate & Application_WindowDeactivate events
    to hide/show custom tabs that I have created with the Ribbon Designer. But I also need to hide/show the builtin tabs.


    Tim


    • Edited by Tim_Shaf Thursday, March 22, 2012 1:29 PM
    Wednesday, March 21, 2012 1:52 PM
  • Helmut,

    Thanks for the reply.

    There are very strict requirements for the documents that use these templates\addin.
    The Standard Office functionality will allow users of these templates to break these rules which results in alot of cleanup work. We have found it it much better to restrict the functionality so that it is easier for the users to comply with the requirements.

    In Word 2003, we were very successful in restricting the functionality of the interface.
    I have moved all the routines from vba to a Word addin and I am now trying to restrict the interface.

    The article that your referenced is the same one I referenced.

    Thanks again for your reply.


    Tim

    Wednesday, March 21, 2012 2:06 PM
  • Hi Tim,

    Your initial post asks "Could you provide a code snip or a reference to get me going in the right direction?"

    Here are references and links that discuss ways to resolve your issue:

    A good place to start is Cindy Meister’s reply in the following Forum thread:
    Possible to Hide Built-in Ribbon Elements
    http://social.msdn.microsoft.com/Forums/en-US/worddev/thread/cf0f5dc2-3ef9-41c6-8bd1-167d7ef5b9dd

    She quotes Frank Rice, referring to this MSDN article:
    Introduction to the Office 2010 Backstage View for Developers
    http://msdn.microsoft.com/en-us/library/ee691833.aspx

    Where Frank answers this question:
    Can I repurpose one of
    the existing definitive command buttons, fast command buttons, or tabs by
    changing its onAction callback attribute? For example can I change the file
    Save button so that is has an additional type, or displays only one file type?

    It is not possible to override these commands
    from the custom UI XML markup or by using the object model. Using the DocumentBeforeSave
    event is one alternative, but using that doesn't really change the
    functionality of the individual commands that show up in the Change File
    Type
    gallery in the Backstage. A better solution would be to consider
    hiding the built-in UI and rebuilding it fully with custom commands.



    The following links are to content that expands on concepts used by developers:
    Getting Started with Office 2010 Fluent UI Customization
    http://msdn.microsoft.com/en-us/library/ff936211.aspx

    Display and Hide Tabs, Groups, and Controls on the Microsoft ...
    http://msdn.microsoft.com/en-us/library/ee633442(v=office.11).aspx

    In the above article see the topic “Using the getVisible Attribute with Built-in Tabs”
    Creating Custom Tabs in the Office 2010 Backstage View
    http://msdn.microsoft.com/en-us/library/ff936214.aspx

    Ribbon Extensibility in Office 2010: Tab Activation and Auto...
    http://msdn.microsoft.com/en-us/library/ee691834.aspx

    Programmatically Customizing the 2007 Office Fluent User Interface
    http://msdn.microsoft.com/en-us/library/bb335359(v=office.12).aspx

    Temporarily Repurpose Commands on the Office Fluent Ribbon
    http://msdn.microsoft.com/en-us/library/bb462633(v=office.12).aspx

    Regards,
    Chris Jensen
    Senior Technical Support Lead


    Chris Jensen

    • Marked as answer by Tim_Shaf Thursday, March 22, 2012 9:07 PM
    Thursday, March 22, 2012 5:57 PM
    Moderator
  • Chris,

    Thanks for the references.

    It is now clear that I cannot show/hide the builtin tabs via my addin.
    I will need to create custom tabs to my addin to replace the builtin tabs
    to expose the desired functionality.

    Since I need to show the builtin tabs when the activedocument attached template
    is not one of my custom templates, I will need to create another addin as a
    controller to load/unload my addin.

    I have found some references for this controller type functionality, but they are
    older. If you know of any recent ones for vs2010 or office 2010, I would appreciate if you could post the references.

    Thanks for the help.


    Tim

    Thursday, March 22, 2012 9:07 PM