locked
Blocking the File Tab RRS feed

  • Question

  • Hallo Everyone,

    With our current development I've got to the point where I can set up custom Ribbons and so am very happy that I can control what the users can and cannot do.  We have also removed/blocked access to the left-hand Navigation (database) window.

    However the "File Tab" (access to "backstage") still remains and I am not not sure how/if that can be blocked for specific applications.

    Can anyone give me a view of what the normal practice here is.  And maybe there is an explanatory page/howto that someone could point me to?

    Many thanks,

    Alan Searle

    Cologne

    Wednesday, August 29, 2012 1:53 PM

Answers

  • Hi Alan,

    the most you can do with Backstage is to hide "buttons" you don't want your users are able to see. With a simple backstage xml part:

    <backstage> 
        <button idMso="FileSave" visible="false"/>
        <button idMso="SaveObjectAs" visible="false"/>
        <button idMso="FileSaveAsCurrentFileFormat" visible="false"/>
        <button idMso="FileOpen" visible="false"/>
        <button idMso="FileCloseDatabase" visible="false"/>
        <tab idMso="TabInfo" visible="false"/>
        <tab idMso="TabRecent" visible="false"/>
        <tab idMso="TabNew" visible="false"/>
        <tab idMso="TabPrint" visible="true"/>
        <tab idMso="TabShare" visible="false"/>
        <tab idMso="TabHelp" visible="true"/>
        <button idMso="ApplicationOptionsDialog" visible="false"/>
        <button idMso="FileExit" visible="true"/>
      </backstage> 

    you can get the following result:


    Andrey V Artemyev | Saint-Petersburg, Russia
    Russian blog artemyev.biztoolbox.ru

    • Marked as answer by AlanInCologne Thursday, August 30, 2012 2:30 PM
    Thursday, August 30, 2012 10:13 AM

All replies

  • Hi Alan,

    the most you can do with Backstage is to hide "buttons" you don't want your users are able to see. With a simple backstage xml part:

    <backstage> 
        <button idMso="FileSave" visible="false"/>
        <button idMso="SaveObjectAs" visible="false"/>
        <button idMso="FileSaveAsCurrentFileFormat" visible="false"/>
        <button idMso="FileOpen" visible="false"/>
        <button idMso="FileCloseDatabase" visible="false"/>
        <tab idMso="TabInfo" visible="false"/>
        <tab idMso="TabRecent" visible="false"/>
        <tab idMso="TabNew" visible="false"/>
        <tab idMso="TabPrint" visible="true"/>
        <tab idMso="TabShare" visible="false"/>
        <tab idMso="TabHelp" visible="true"/>
        <button idMso="ApplicationOptionsDialog" visible="false"/>
        <button idMso="FileExit" visible="true"/>
      </backstage> 

    you can get the following result:


    Andrey V Artemyev | Saint-Petersburg, Russia
    Russian blog artemyev.biztoolbox.ru

    • Marked as answer by AlanInCologne Thursday, August 30, 2012 2:30 PM
    Thursday, August 30, 2012 10:13 AM
  • Many thanks Andrey,

    That is a big help and takes us in the right direction.

    Regards,

    Alan

    Thursday, August 30, 2012 2:30 PM
  • Hi Andrey,

    I'm trying to use your solution but doesn't work.

    is it important where set the xml tag <backstage> into the file which will be into UsysRibbons table?

     

    <?xml version="1.0" encoding="utf-8"?>
    <customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui">
      <ribbon startFromScratch="false">
       <backstage>
        <button idMso="ApplicationOptionsDialog" visible="false"/>
      </backstage>
        <tabs>

    .......

                </tabs>

    </ribbon>

    </customUI>

    Thank you a lot. ciao

    Thursday, September 10, 2015 7:16 AM
  • Hi Memo. Take a look at the demo I posted at UtterAccess. Hope that helps...
    Thursday, September 10, 2015 3:12 PM
  • Yes, the ONLY place in which backstage xml tags work is in the OVER ALL MAIN ribbon specified for the applcaiton. So any ribbon speicifed for a form, report etc. will NOT respect and NOT use the backstage xml.

    So the ONLY ribbon that will work is the one that you speicify for the over all application. Any other ribbon with backstage tags in it will be ignored.

    Regards,

    Albert D. Kallal (Access MVP)
    Edmonton, Alberta Canada

    Friday, September 11, 2015 8:26 PM