A
Alice Graham
I am writing an addin for Word 2007 using C# and VSTO.
I want to work with events, but am not sure on the correct way to do this.
At the minute I have:
((ApplicationEvents4_Event)application).NewDocument += new
Microsoft.Office.Interop.Word.ApplicationEvents2_NewDocumentEventHandler(AppEvents_NewDocument);
Then I also have a method called AppEvents_NewDocument where I do my work.
The documentation that I find says that ApplicationEvents4_Event interface
is the events interface for Word 2003 (ApplicationEvents3_Event for 2002 and
ApplicationEvents2_Event for 2000).
My question is, what events interface should I use for Word 2007?
I want to work with events, but am not sure on the correct way to do this.
At the minute I have:
((ApplicationEvents4_Event)application).NewDocument += new
Microsoft.Office.Interop.Word.ApplicationEvents2_NewDocumentEventHandler(AppEvents_NewDocument);
Then I also have a method called AppEvents_NewDocument where I do my work.
The documentation that I find says that ApplicationEvents4_Event interface
is the events interface for Word 2003 (ApplicationEvents3_Event for 2002 and
ApplicationEvents2_Event for 2000).
My question is, what events interface should I use for Word 2007?