ApplicationEvents4_MailMergeBeforeRecordMergeEventHandler Delegate
A Delegate type used to add an event handler for the MailMergeBeforeRecordMerge event. The MailMergeBeforeRecordMerge event occurs as a merge is executed for the individual records in a merge.
Namespace: Microsoft.Office.Interop.Word
Assembly: Microsoft.Office.Interop.Word (in microsoft.office.interop.word.dll)
Usage
Sub Sub1(Doc As Document, _
Cancel As Boolean)
End Sub
Dim applicationEvents4_MailMergeBeforeRecordMergeEventHandler1 As New ApplicationEvents4_MailMergeBeforeRecordMergeEventHandler(AddressOf Sub1)
Syntax
Public Delegate Sub ApplicationEvents4_MailMergeBeforeRecordMergeEventHandler( _
<InAttribute()> ByVal Doc As Document, _
<InAttribute(), OutAttribute()> ByRef Cancel As Boolean _
)
public delegate void ApplicationEvents4_MailMergeBeforeRecordMergeEventHandler(
[In] Document Doc,
[In, Out] ref bool Cancel
);
public delegate Void ApplicationEvents4_MailMergeBeforeRecordMergeEventHandler(
Document^ Doc,
&Boolean Cancel
);
public delegate void ApplicationEvents4_MailMergeBeforeRecordMergeEventHandler(
/*in*/Document Doc,
/*in*/boolean Cancel
);
In JScript, you can use the delegates in the .NET Framework, but you cannot define your own.
Parameters
- Doc
The mail merge main document.
- Cancel
True stops the mail merge process for the current record only before it starts.
Platforms
Development Platforms
Windows XP Home Edition, Windows XP Professional, Windows Server 2003, and Windows 2000