Skip to main content
A newer version of this page is available. .
.NET Framework 4.5.2+

IRichEditDocumentServer.MailMerge(IRichEditDocumentServer) Method

OBSOLETE

This method has become obsolete. Use another MailMerge method overload with appropriate parameters instead.

Merges the current document and sends the result to the specified RichEditDocumentServer instance.

Namespace: DevExpress.XtraRichEdit

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

NuGet Package: DevExpress.RichEdit.Core

Declaration

[Browsable(false)]
[Obsolete("This method has become obsolete. Use another MailMerge method overload with appropriate parameters instead.")]
void MailMerge(
    IRichEditDocumentServer documentServer
)

Parameters

Name Type Description
documentServer IRichEditDocumentServer

An object implementing the IRichEditDocumentServer interface, such as the IRichEditDocumentServer or the RichEditControl instance.

Remarks

Use this method to process the resulting document in the IRichEditDocumentServer. For example, if merge fields are nested within DOCVARIABLE fields, you can call the FieldCollection.Update method to calculate filed content by handling the IRichEditDocumentServer.CalculateDocumentVariable event.

Note

A newer and more convenient approach to Master-Detail Mail Merge is provided by the SnapControl and SnapDocumentServer.

The RichEditControl.CalculateDocumentVariable event is raised for the object with the IRichEditDocumentServer interface, passed as an argument to the MailMerge method.

See Also