MailMergeAndDownloadCommand.execute(fileExtension) Method
In This Article
Executes the MailMergeAndDownloadCommand command with the specified parameters.
#Declaration
TypeScript
execute(
fileExtension: string | DocumentFormat,
settings?: MailMergeSettings
): boolean
#Parameters
Name | Type | Description |
---|---|---|
file |
string | Document |
A string value specifying the file extension of the resulting document. |
settings | Mail |
A Mail |
#Returns
Type | Description |
---|---|
boolean |
|
#Remarks
Usage example:
var mergeSettings = {
range: ASPx.MailMergeExportRange.Range,
exportFrom: 2,
exportRecordsCount: 5,
mergeMode: ASPx.MergeMode.NewSection
};
richEdit.commands.mailMergeAndDownload.execute('.docx', mergeSettings);
See Also