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)

'Declaration
<ComVisibleAttribute(False)> _
PublicDelegateSubApplicationEvents4_MailMergeBeforeMergeEventHandler ( _
	DocAsDocument, _
	StartRecordAsInteger, _
	EndRecordAsInteger, _
	<OutAttribute> ByRefCancelAsBoolean _
)
'Usage
DiminstanceAsNewApplicationEvents4_MailMergeBeforeMergeEventHandler(AddressOf HandlerMethod)

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.

Show:
© 2014 Microsoft