Outlook 2013 add-in Ribbon XML how to execute some code every time an email is opened?

StackOverflow https://stackoverflow.com/questions/21801748

  •  12-10-2022
  •  | 
  •  

سؤال

I've tried getEnabled and getVisible callbacks in Ribbon.xml file, but they are not called every time an email is opened. I've also tried subscribing to Outlook NewInspector event, but is executes only at the first time an email is opened. Is there any other method I could try?

هل كانت مفيدة؟

المحلول

Inspectors.NewInspector event fires every time an item is opened as long as you keep the object that fires the events (Inspectors) in a global/class variable to make sure it stays alive. Please show your code that does not work for you.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top