Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

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.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.