Skip to main content
A newer version of this page is available. .
cut

RichEditCommands.fileSaveAs Property

Gets a command to save a document in a file with the specified path.

Declaration

readonly fileSaveAs: FileSaveAsCommand

Property Value

Type Description
FileSaveAsCommand

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

Remarks

Call the execute(path) 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 fileSettings = {
    documentFormat: ASPx.DocumentFormat.Doc,
    fileName: 'document1',
    folderPath: '/'
}
richEdit.commands.fileSaveAs.execute(fileSettings)

Saving a document to the server is enabled only when the ASPxRichEdit.WorkDirectory property is defined.

See Also