Is it possible to determine what specific Word add-in fired an event?

Add-in Express™ Support Service
That's what is more important than anything else

Is it possible to determine what specific Word add-in fired an event?
 
Ron Waicus




Posts: 13
Joined: 2009-09-17
Hi,

I have a situation where another vendor has their Word add-in installed.
That add-in is incorrectly doing "phantom saves" for new unsaved Word documents.
My solution has to work with this 3rd party add-in.

I can mitigate this undesired behavior though business logic in my ADX add-in if I can only determine what specific add-in fired the DocumentBeforeSave() event in Word. (via e.Cancel)

Is there any way of figuring out what specific Word add-in fired the call to: ?
private void adxWordAppEvents_DocumentBeforeSave(object sender, ADXHostBeforeSaveEventArgs e)

Thanks!
Ron
Posted 17 Apr, 2018 13:47:46 Top
Andrei Smolin


Add-in Express team


Posts: 18829
Joined: 2006-05-11
Hello Ron,

No Office application's object model provides a way to achieve this. If you create two add-ins, you can find the order in which the add-ins receive the event; this order depends on the alphabetical order of their ProgIds.


Andrei Smolin
Add-in Express Team Leader
Posted 18 Apr, 2018 01:10:20 Top