.NET Framework - Show form at new document creation word

Asked By merijn on 24-Jan-07 12:49 PM
Hi,

I Have created a small Office Com Addin in VB.Net (VS 2005). I now try to
show a simple form as a user opens or creates a new word document but I can
not find any example.

Could anyone help me a little bit?

Thanks,

Merijn


___
Newsgroups brought to you courtesy of www.dotnetjohn.com




qanu replied on 25-Jan-07 02:30 AM
Hi!
The Globals.ThisAddIn.Application object has a lot of nice events to
handle:
*         Globals.ThisAddIn.Application.DocumentBeforeClose;
*         Globals.ThisAddIn.Application.DocumentBeforePrint;
*         Globals.ThisAddIn.Application.DocumentBeforeSave;
*         Globals.ThisAddIn.Application.DocumentChange;
*         Globals.ThisAddIn.Application.DocumentOpen;
*         Globals.ThisAddIn.Application.DocumentSync;
*         Globals.ThisAddIn.Application.EPostageInsert;
*         Globals.ThisAddIn.Application.EPostageInsertEx;
*         Globals.ThisAddIn.Application.EPostagePropertyDialog;
*         Globals.ThisAddIn.Application.MailMerge*;
*         Globals.ThisAddIn.Application.WindowActivate;
*         Globals.ThisAddIn.Application.WindowBeforeDoubleClick;
*         Globals.ThisAddIn.Application.WindowBeforeRightClick;
*         Globals.ThisAddIn.Application.WindowDeactivate;
*         Globals.ThisAddIn.Application.WindowSelectionChange;
*         Globals.ThisAddIn.Application.WindowSize;
*         Globals.ThisAddIn.Application.XML*;

I'm sure there you find what you need...

Regards
M

merijn schrieb:
Merijn replied on 25-Jan-07 03:03 AM
Hi,

Thank you. It gave me the right direction. I created a normal VB.Net project
instead of a VSTO.

Regards,

Merijn