Skip to main content
cut

RichEditCommands.mailMergeAndDownload Property

Gets a command to perform a mail merge and download the merged document.

Declaration

get mailMergeAndDownload(): MailMergeAndDownloadCommand

Property Value

Type Description
MailMergeAndDownloadCommand

An object that provides methods that execute the command and check its state.

Remarks

Call the execute(fileExtension) method to invoke the command. The method checks the command state (obtained via the getState method) to determine whether the action can be performed.

var mergeSettings = {
    range: ASPx.MailMergeExportRange.Range,
    exportFrom: 2,
    exportRecordsCount: 5,
    mergeMode: ASPx.MergeMode.NewSection
};

richEdit.commands.mailMergeAndDownload.execute(ASPx.DocumentFormat.Doc, mergeSettings);

Refer to the following section for more information: Client Commands.

See Also