We have hooked Word event OnBeforeDocumentClose_info into our code,
we are performing drag drop operation, i.e. dragging word document 1 to word document2, word document 2 is already in open state,
We had already checked and found that during drag drop operation source file is internally opened and hence it is obvious that close will happen for source document only at the end of drag drop operation.
But recently on office19 , we have found that close event (OnBeforeDocumentClose_info) is being triggered for destination document at the end of drag drop operation, we have verified that file open event is not called for destination document during drag drop operation, then why close event is being triggered for it.
- can you please confirm why Close event is triggered for destination file during drag drop operation as Open event wasn't triggered for it (this is our understanding that during drag drop operation Open and Close events should be called for only source file)
- I also wanted to check if there is any API through which event OnBeforeDocumentClose_info is triggered
{for eg: if i call 'officeObject.save' , then it internally triggers 'ReplaceFileW' , we have hooked ReplaceFileW in our code, & we already knew that ReplaceFileW is called through 'officeObject.save' , same way we wanted to check which office API is triggering OnBeforeDocumentClose_info}