Skip to main content

TdxRichEditCustomDocumentServer.SaveDocument(TStream,TdxRichEditDocumentFormat) Method

Saves the opened document to a stream.

Declaration

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

Parameters

Name Type Description
AStream TStream

A target stream.

ADocumentFormat TdxRichEditDocumentFormat

A document format.

Remarks

If the SaveDocument procedure accepts the TdxRichEditDocumentFormat.Undefined value as the ADocumentFormat parameter, the Options.DocumentSaveOptions.DefaultFormat property defines the target document format.

Note

The document server component has built-in support only for the plain text format to avoid excessive dependencies. Refer to the following topic for information on how to enable RTF, DOC, DOCX, and HTML formats: Document Server: Document Management.

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

See Also