question

VAIBHAVMORE-3397 avatar image
VAIBHAVMORE-3397 asked ·

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

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-supported
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

AlexLi-MSFT avatar image
AlexLi-MSFT answered ·

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.

Thanks.

Share
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

DSPatrick avatar image
DSPatrick answered ·

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

https://social.msdn.microsoft.com/Forums/en-US/home?forum=vsto


--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.


Share
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.