NetOfficeFw / NetOffice

🌌 Create add-ins and automation code for Microsoft Office applications.
MIT License
697 stars 143 forks source link

Outlook quitEvent doesn't trigger #244

Closed Hisendur closed 5 years ago

Hisendur commented 5 years ago

After updating NetOffice to 1.7.4.5 the Outlook QuitEvent does not trigger. The event is subscribed to via the following commands in the OnConnection event.

OutlookApplication = this.Application;
OutlookApplication.QuitEvent += QuitEvent;

When I close Outlook this event is not triggered. Is this known? Can this be fixed?

Thank you

jozefizso commented 5 years ago

This event is no longer called by the MS Outlook 2010 and newer.

https://docs.microsoft.com/en-us/previous-versions/office/developer/office-2010/ee720183(v=office.14)

jozefizso commented 5 years ago

This is expected behavior of MS Outlook.

jozefizso commented 5 years ago

If an add-in uses these events to commit data (for example, to store user settings or to report usage to a Web server), those activities will no longer take place. Depending on the scenario, this may or may not have a visible impact to users. To remedy the situation, the add-in developer can modify the add-in to be compatible with the changes, or an IT administrator can use group policy to restore the original behavior for a specific add-in.

https://docs.microsoft.com/en-us/previous-versions/office/developer/office-2010/ee720183(v=office.14)