DocumentEvents2_Event.New EventĀ 

Occurs when a new document based on the template is created.

Namespace: Microsoft.Office.Interop.Word
Assembly: Microsoft.Office.Interop.Word (in microsoft.office.interop.word.dll)

Usage

WithEvents documentEvents2_Event1 As DocumentEvents2_Event
Function documentEvents2_Event1_New() As Void
    Handles documentEvents2_Event1.New
End Function

Syntax

Event New As DocumentEvents2_NewEventHandler
event DocumentEvents2_NewEventHandler New;
event DocumentEvents2_NewEventHandler^ New;
 void add_New(DocumentEvents2_NewEventHandler handler);
 void remove_New(DocumentEvents2_NewEventHandler handler);
In JScript, you can handle the events defined by a class, but you cannot define your own.

Remarks

A procedure for the New event will run only if it is stored in a template.

Platforms

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, and Windows 2000

Target Platforms

See Also

Reference

DocumentEvents2_Event Interface
Microsoft.Office.Interop.Word Namespace

Other Resources

DocumentEvents2_Event Members