I have a Word add-in that listens to DocumentBeforeClose
event so that when the user closes Word, I will automatically save the document so there will be no save prompt. I'm having issues when an iManage add-in is enabled in Word because it also prompts a save dialog when user hits close button, I want to suppress that save prompt.
I have tried to get the add-ins using addins = Application.COMAddIns
and try to set addin.Connect = false;
to temporarily disable the add-in and later enable it after document closed, but I cannot due to admin rights.
How can I use the addin.Object
to register to iManage add-in's DocumentBeforeClose
event like hijacking it?
NOTE: Word's DocumentBeforeClose
event gets fired after the iManage save prompt so I need to save the document in iManage add-in DocumentBeforeClose
event to prevent the save prompt from appearing.