Expand Minimize

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)

[ComVisibleAttribute(false)]
public delegate void ApplicationEvents4_MailMergeBeforeMergeEventHandler(
	Document Doc,
	int StartRecord,
	int EndRecord,
	out bool Cancel
)

Parameters

Doc
Type: Microsoft.Office.Interop.Word.Document
The mail merge main document.
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.

Community Additions

ADD
Show:
© 2015 Microsoft