none
Word 2012 hiding ribbon buttons issue RRS feed

  • Question

  • Hi

    We have to create a new Word 2012 instance as part of our application. It's not a problem, but we need to hide almost all of ribbon buttons inside the embedded Word app to prevent a user from doing different actions like exit, saving, creating new documents etc. It would be also very good if our customers don't have to install VSTO customization on production servers or change their security policy.

    How do you recommend to do that, and what is the best way to hide ribbon buttons?
    Thanks

    Friday, November 8, 2013 12:47 PM

Answers

  • Hi Kentor

    In order to suppress "all" Ribbon content you need to include Ribbon XML in your project that includes

       startFromScratch="true"

    You'll find more on this in the documentation for the Office Fluent UI. Apparently, Microsoft in its infintite wisdom and desparate attempt to get people to migrate to Office 2013 apps has removed the page with links to all aspects of the technology. But here's a starting point: http://msdn.microsoft.com/en-us/library/office/aa338202(v=office.12).aspx

    Note, however, that it is NOT possible to remove ALL core functionality from the Word Ribbon. Some commands in the File menu cannot be removed, although many can be disabled. But a certain core functionality is maintained for the user. Office applications are end-user applications, are considered the "property" of the user (who owns the license) and are not meant to be incorporated into the applications of third parties. This is a conscious decision on the part of Microsoft. Basically, it boils down to the philosophy, if you need a rich editor for your application you should pay for it, not piggy-back on Microsoft's efforts.

    Ribbon XML content can only be definied as part of a document or of a COM add-in (although this doesn't have to be VSTO). Any Ribbon you define can be supplemented by other add-ins that load into the Word instance - you have no control whatsoever over these Ribbons. You can, however, unload the add-in the contains a Ribbon, you need to be aware that this could compromise the user's working in another instance of Word.


    Cindy Meister, VSTO/Word MVP, my blog

    Friday, November 8, 2013 7:17 PM
    Moderator

All replies

  • Hi Kentor

    In order to suppress "all" Ribbon content you need to include Ribbon XML in your project that includes

       startFromScratch="true"

    You'll find more on this in the documentation for the Office Fluent UI. Apparently, Microsoft in its infintite wisdom and desparate attempt to get people to migrate to Office 2013 apps has removed the page with links to all aspects of the technology. But here's a starting point: http://msdn.microsoft.com/en-us/library/office/aa338202(v=office.12).aspx

    Note, however, that it is NOT possible to remove ALL core functionality from the Word Ribbon. Some commands in the File menu cannot be removed, although many can be disabled. But a certain core functionality is maintained for the user. Office applications are end-user applications, are considered the "property" of the user (who owns the license) and are not meant to be incorporated into the applications of third parties. This is a conscious decision on the part of Microsoft. Basically, it boils down to the philosophy, if you need a rich editor for your application you should pay for it, not piggy-back on Microsoft's efforts.

    Ribbon XML content can only be definied as part of a document or of a COM add-in (although this doesn't have to be VSTO). Any Ribbon you define can be supplemented by other add-ins that load into the Word instance - you have no control whatsoever over these Ribbons. You can, however, unload the add-in the contains a Ribbon, you need to be aware that this could compromise the user's working in another instance of Word.


    Cindy Meister, VSTO/Word MVP, my blog

    Friday, November 8, 2013 7:17 PM
    Moderator
  • Hi Kentor,

    Since we haven't heard from you for a long time, I temporarily close this case.

    I mark useful reply as answer. If you have any concerns, please free feel to reopen it or submit a new question.

    Thanks for your understanding.

    Best regards

    Fei

       

    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Thursday, November 14, 2013 12:12 PM
    Moderator