|
-
Jun 5th, 2002, 03:22 AM
#1
Thread Starter
Lively Member
Problems with word
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?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|