Skip to main content

IdxRichEditDocument.SaveDocument(TStream,TdxRichEditDocumentFormat) Method

Exports the document to a stream.

Declaration

procedure SaveDocument(AStream: TStream; AFormat: TdxRichEditDocumentFormat); overload;

Parameters

Name Type Description
AStream TStream

A target stream.

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