cut

RichEditCommands.mailMergeAndSaveAs Property

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

Declaration

readonly mailMergeAndSaveAs: MailMergeAndSaveAsCommand

Property Value

Type Description
MailMergeAndSaveAsCommand

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

Remarks

Call the execute(filePath) 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 fileInfo = {
    fileName: 'result',
    documentFormat: ASPx.DocumentFormat.Doc,
    folderPath: ''
};
var mergeSettings = {
    range: ASPx.MailMergeExportRange.Range,
    exportFrom: 2,
    exportRecordsCount: 5,
    mergeMode: ASPx.MergeMode.NewSection
};

richEdit.commands.mailMergeAndSaveAs.execute(fileInfo, mergeSettings);
See Also