.NET Word automation, Document-Close Event

P

Patrick

Hello

I'm just trying to figure out, if there is any event on document or word
level, which tell's me that the document was closed. I just found the

ApplicationEvents2_Event_DocumentBeforeClose

ApplicationEvents2_Event_DocumentBeforeSave

Events. But these are to early,I'm looking for a AfterSave and AfterClose
.... any Ideas? Because I want to process the document when it was closed /
or word was closed



Thanks

Patrick
 
C

Cindy M -WordMVP-

Hi Patrick,
I'm just trying to figure out, if there is any event on document or word
level, which tell's me that the document was closed. I just found the

ApplicationEvents2_Event_DocumentBeforeClose

ApplicationEvents2_Event_DocumentBeforeSave

Events. But these are to early,I'm looking for a AfterSave and AfterClose
.... any Ideas? Because I want to process the document when it was closed /
or word was closed
Nothing like that... Maybe the DocumentChange event. Keep a "list" of open
documents. Everytime one is opened, add it to the list. Everytime one is
closed, remove it from the list. Everytime the events fires, compare the
currently opened docs to the list. Whichever one is missing has (just) been
closed and you can do something with it. Sort of like .Net's "garbage
collection" works :)

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top