FileDownloadCommand.execute(fileExtension) Method

Executes the FileDownloadCommand command with the specified parameters.

Declaration

execute(
    fileExtension: string | DocumentFormat,
    fileName?: string
): boolean

Parameters

Name Type Description
fileExtension string | DocumentFormat

A string value specifying the extension of the downloading file.

fileName string

The name of the downloaded document.

Returns

Type Description
boolean

true if the command has been successfully executed; false if the command execution has failed.

Remarks

richEdit.commands.fileDownload.execute(ASPx.DocumentFormat.Rtf, "MyDocument");
See Also