I am developing a COM AddIn for Microsoft Word using Visual Basic .NET.

1) How can I open an existing document or add a new document without getting a new word instance? My code looks like the following at the moment:

objWordInstance.Documents.open(Filename:=mstrDateinameMitPfad)

and

objWordInstance.Documents.Add()

When I open Word (I am using Word 2000) and immediately open my document everything works fine. But when I have already an open document that statement opens my document within a new word instance. Adding a document always opens a new word.

2) Is it possible to recognise that a document is closed? I know the event DocumentBeforeClose but I really need to know that the document is closed.

Can anybody help?