J
Johnny E Jensen
Hello
Within a class i declare the Word.Application _objApplication = new
Word.Application(); I'll do this within the constructor.
also i'll like to prepare some events here in the constructor from the
_objApplication. Events i'm looking for is some to tell me that a document
as been saved or closed. the only events i see here is
DocumentBeforeSave and DocumentBeforeClose.
If i use this eks. DocumentBeforeClose i'll raise my own event with in the
_objApplication.DocumentBeforeClose
So far so good.
The above class objWord declared in a form as MSOfficeWordClass objWord =
new MSOfficeWordClass();
objWord.WordDocumentSavedEvent += new
MSOfficeWordClass.WordDocumentSavedHandler(objWord_WordDocumentSavedEvent);
Now i can process the filename that declared within the
WordDocumentSavedHandler. So far so good.
This routine fires the save template into database but somewhere along the
code breaks, and don't execute.
Why arent there an event on the Word.Application after documentsaved or
afterdocumentclosed???
Kind regards
Johnny E Jensen
Within a class i declare the Word.Application _objApplication = new
Word.Application(); I'll do this within the constructor.
also i'll like to prepare some events here in the constructor from the
_objApplication. Events i'm looking for is some to tell me that a document
as been saved or closed. the only events i see here is
DocumentBeforeSave and DocumentBeforeClose.
If i use this eks. DocumentBeforeClose i'll raise my own event with in the
_objApplication.DocumentBeforeClose
So far so good.
The above class objWord declared in a form as MSOfficeWordClass objWord =
new MSOfficeWordClass();
objWord.WordDocumentSavedEvent += new
MSOfficeWordClass.WordDocumentSavedHandler(objWord_WordDocumentSavedEvent);
Now i can process the filename that declared within the
WordDocumentSavedHandler. So far so good.
This routine fires the save template into database but somewhere along the
code breaks, and don't execute.
Why arent there an event on the Word.Application after documentsaved or
afterdocumentclosed???
Kind regards
Johnny E Jensen