Back to Devexpress

RichEditDocumentServer.MailMergeRecordFinished Event

officefileapi-devexpress-dot-xtrarichedit-dot-richeditdocumentserver-b32b9e1f.md

latest3.9 KB
Original Source

RichEditDocumentServer.MailMergeRecordFinished Event

Fires after each data record is merged with the document in the mail merge process.

Namespace : DevExpress.XtraRichEdit

Assembly : DevExpress.RichEdit.v25.2.Core.dll

NuGet Package : DevExpress.RichEdit.Core

Declaration

csharp
public event MailMergeRecordFinishedEventHandler MailMergeRecordFinished
vb
Public Event MailMergeRecordFinished As MailMergeRecordFinishedEventHandler

Event Data

The MailMergeRecordFinished event's data class is MailMergeRecordFinishedEventArgs. The following properties provide information specific to this event:

PropertyDescription
CancelGets or sets a value indicating whether the event should be canceled. Inherited from CancelEventArgs.
DocumentGets a merged document.
MailMergeRegionInfoObtains information on the currently merged region.
RecordDocumentGets a template document after a record is merged.
RecordIndexGets an index of a record currently merged.

Remarks

The MailMergeRecordFinished event can be used to post-process the merged section of a document that corresponds to a particular record.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the MailMergeRecordFinished event.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

word-document-api-use-docvariable-fields/CS/Program.cs#L34

csharp
wordProcessor.MailMergeRecordStarted += wordProcessor_MailMergeRecordStarted;
wordProcessor.MailMergeRecordFinished += wordProcessor_MailMergeRecordFinished;

word-document-api-use-docvariable-fields/VB/Program.vb#L28

vb
AddHandler wordProcessor.MailMergeRecordStarted, AddressOf wordProcessor_MailMergeRecordStarted
AddHandler wordProcessor.MailMergeRecordFinished, AddressOf wordProcessor_MailMergeRecordFinished

Implements

MailMergeRecordFinished

See Also

RichEditDocumentServer Class

RichEditDocumentServer Members

DevExpress.XtraRichEdit Namespace