Share via


ApplicationEvents4_MailMergeBeforeMergeEventHandler Delegate

A Delegate type used to add an event handler for the MailMergeBeforeMerge event. The MailMergeBeforeMerge event occurs when a merge is executed before any records merge.

Namespace:  Microsoft.Office.Interop.Word
Assembly:  Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)

Syntax

'Declaration
<ComVisibleAttribute(False)> _
Public Delegate Sub ApplicationEvents4_MailMergeBeforeMergeEventHandler ( _
    Doc As Document, _
    StartRecord As Integer, _
    EndRecord As Integer, _
    <OutAttribute> ByRef Cancel As Boolean _
)
'Usage
Dim instance As New ApplicationEvents4_MailMergeBeforeMergeEventHandler(AddressOf HandlerMethod)
[ComVisibleAttribute(false)]
public delegate void ApplicationEvents4_MailMergeBeforeMergeEventHandler(
    Document Doc,
    int StartRecord,
    int EndRecord,
    out bool Cancel
)

Parameters

  • StartRecord
    Type: System.Int32
    The first record in the data source to include in the mail merge.
  • EndRecord
    Type: System.Int32
    The last record in the data source to include in the mail merge.
  • Cancel
    Type: System.Boolean%
    True stops the mail merge process before it starts.

See Also

Reference

Microsoft.Office.Interop.Word Namespace