Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

IdxRichEditDocument.SaveDocument(TStream,TdxRichEditDocumentFormat) Method

Exports the document to a stream.

#Declaration

Delphi
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