Skip to main content

IdxRichEditDocument.SaveDocument(string,TdxRichEditDocumentFormat) Method

Exports the document to a file.

Declaration

procedure SaveDocument(const AFileName: string; AFormat: TdxRichEditDocumentFormat); overload;

Parameters

Name Type Description
AFileName string

An absolute or relative path to a target file.

AFormat TdxRichEditDocumentFormat

A document format.

Remarks

The SaveDocument procedure uses a Rich Edit component‘s Options.DocumentSaveOptions.DefaultFormat property value as the target document format if the AFormat parameter accepts the TdxRichEditDocumentFormat.Undefined value.

Note

The document server component has built-in support only for the plain text format. The Rich Edit control supports both TXT and RTF formats out-of-the-box. Refer to the following topics for information on how to enable optional document formats:

A SaveDocument procedure call cannot export a document to the target format if it is disabled.

See Also