Powerpoint addin : How to manage context across multiple open documents ?

VAIBHAV MORE 1 Reputation point

I have created a Powerpoint VSTO add-in using C#.

In add-in, I have created a ribbon (using XML) that provides a Login button.

When a user clicks the login button

  • The login form is displayed
  • The user enters his credentials
  • If credentials are correct, the login button changes color and displays username to denote that the user is logged in
  • Few more ribbon buttons are made visible to allow the user to access data from the server and download it in the ppt.

My issue is :

  • I open one ppt document and log in. Ribbon UI is updated
  • If I open a second ppt document, ribbon UI shows that I have already logged in. This is invalid.

How can I contextualize the ribbon state across different presentation documents?

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
37,730 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Anonymous

    I'd try asking for help in dedicated MSDN VSTO forums here.


    --please don't forget to Accept as answer if the reply is helpful--

    Regards, Dave Patrick ....
    Microsoft Certified Professional
    Microsoft MVP [Windows Server] Datacenter Management

    Disclaimer: This posting is provided "AS IS" with no warranties or guarantees, and confers no rights.

    1 person found this answer helpful.
    0 comments No comments

  2. Alex Li-MSFT 1,096 Reputation points

    Welcome to our Microsoft Q&A platform!

    According to your description, your issue is more related about vsto. And this forum is discussing and asking questions about the wpf.


    0 comments No comments