Showing Backstage programmatically RRS feed

  • Question

  • There is any way to show a Backstage view programmatically?


    I have created a tab into Backstage view (file menu) with several user options. Then i have created a new group into Ribbon tool bar with a button, I want that when user clicks on this button, my tab on Backstage view get activated.

    The way of C#
    Wednesday, November 2, 2011 7:27 PM


All replies

  • Hello,

    I've tried to activate a custom as well as a built-in BackstageView tabs using AcitivateTab() and AcitivateTabMso(). This produces the exception: "Value does not fall within the expected range". I assume it isn't possible to activate a BackstageView tab using these methods.

    You can try using SendKeys to "press" required keys programmatically, see http://msdn.microsoft.com/en-us/library/ms171548.aspx.

    Regards from Belarus (GMT + 2),

    Andrei Smolin
    Add-in Express Team Leader
    Thursday, November 3, 2011 8:17 AM
  • Looks like this is not a safe solution. Anyway I was looking to find anywere in Outlook that have this behavior, the unique place in all the application was clicking on folder free size at the botton left (see image). If there is a way to know what API it is calling or what it is doing behind the scene...

    The way of C#
    Friday, November 4, 2011 12:58 PM
  • Oh, you can try using Active Accessibility... See http://support.microsoft.com/kb/2494267 and http://msdn.microsoft.com/en-us/library/bb404170(office.12).aspx.
    Regards from Belarus (GMT + 2),

    Andrei Smolin
    Add-in Express Team Leader
    • Marked as answer by Bruce Song Monday, November 14, 2011 5:34 AM
    Friday, November 4, 2011 1:58 PM
  • Hi Marcelo,

    How about the problem on your side? Do the suggestions help you? If you still show any concern on the problem, just feel free to let us know.

    Best Regards,

    Bruce Song [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Friday, November 11, 2011 3:21 AM