we need for our school project a way to start a word instance and track if the document was closed. The COM api from word doens't have a event for this, are there any other ways to do this?
Currently we're using the COM api from word, but everything else would be fine. We're programing in C#.
If your using the Microsoft.Office.Interop.Word library there is an event you can subscribe too:
...
Edit:
To take care of the file lock ==> take a look at this post. As you can see there are a few things done in the DocumentBeforeClose:
After these things are taken care of, you can do your stuff. The lock should be released.