Skip to main content

ASPxRichEdit.MailMerge(MailMergeOptions, Stream, DocumentFormat) Method

Initializes the mail merge process and generates the resulting documents containing the merged information.

Namespace: DevExpress.Web.ASPxRichEdit

Assembly: DevExpress.Web.ASPxRichEdit.v23.2.dll

NuGet Package: DevExpress.Web.Office


public void MailMerge(
    MailMergeOptions mailMergeOptions,
    Stream stream,
    DocumentFormat documentFormat


Name Type Description
mailMergeOptions MailMergeOptions

A MailMergeOptions interface exposing options for the current merge.

stream Stream

A Stream object that is the output stream.

documentFormat DocumentFormat

A DocumentFormat enumeration member specifying the destination format.


The MailMerge method merges the current document with records retrieved from the default mail merge data source specified via the RichEdit’s DataSourceID (or DataSource) property (starting from the MailMergeOptions.FirstRecordIndex through the MailMergeOptions.LastRecordIndex, as specified via the mailMergeOptions parameter) and sends the merged document to the specified stream.

See Also