Skip to main content
A newer version of this page is available. .
.NET Framework 4.5.2+
  • The page you are viewing does not exist in the .NET Standard 2.0+ platform documentation. This link will take you to the parent topic of the current section.

SnapDocumentServer.SnapMailMergeRecordFinished Event

Occurs after data field merging has finished.

Namespace: DevExpress.Snap

Assembly: DevExpress.Docs.v19.1.dll


public event SnapMailMergeRecordFinishedEventHandler SnapMailMergeRecordFinished

Event Data

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

Property Description
Cancel Gets or sets a value indicating whether the event should be canceled. Inherited from CancelEventArgs.
Document Returns the document that is being merged.
RecordDocument Provides access to the document created for a single record after the fields are processed.
RecordIndex Returns the data record index.


Handle the SnapMailMergeRecordFinished event to perform any actions after the process of field merging has finished. For example, you can access the data source collection of a single record document using the SnapDocument.DataSources property of the SnapDocument object accessed via the SnapMailMergeRecordFinishedEventArgs.RecordDocument property.


Do not delete or modify the main data source used for the mail-merge process (i.e., the data source assigned to the DataSource and DataSourceName properties of the SnapMailMergeVisualOptions object) in the event handler, an exception will be thrown otherwise.

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


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.

See Also