F
Frenchy
Hello,
I'm developing an add-in with VS2003 (C#). In that Add-in I have to do
specific treatments before closing a document.
I won't explain why, but I have to cancel the closing (in the
Application_DocumentBeforeClose event).
The problem is that I can detect if the user is closing the last
document(if(this.appWord.Documents.Count==1)) , and the close it.
But I can't detect if the user is quitting Word. The event
Application_DocumentBeforeClose will fire but how to know if it is a document
close or the application close?
Thanks.
I'm developing an add-in with VS2003 (C#). In that Add-in I have to do
specific treatments before closing a document.
I won't explain why, but I have to cancel the closing (in the
Application_DocumentBeforeClose event).
The problem is that I can detect if the user is closing the last
document(if(this.appWord.Documents.Count==1)) , and the close it.
But I can't detect if the user is quitting Word. The event
Application_DocumentBeforeClose will fire but how to know if it is a document
close or the application close?
Thanks.