Skip to main content
A newer version of this page is available. .
All docs
V20.2
.NET Framework 4.5.2+

IRichEditDocumentServer.SaveDocument(DocumentFormat) Method

Saves the document to a byte array in the specified file format.

Namespace: DevExpress.XtraRichEdit

Assembly: DevExpress.RichEdit.v20.2.Core.dll

NuGet Package: DevExpress.RichEdit.Core

Declaration

byte[] SaveDocument(
    DocumentFormat documentFormat
)

Parameters

Name Type Description
documentFormat DocumentFormat

An enumeration member that specifies the output document format.

Returns

Type Description
Byte[]

A byte array that contains data in the specified format.

Remarks

You can handle the IRichEditDocumentServer.BeforeExport event to specify export options.

Note

The SaveDocument method call does not change the IRichEditDocumentServer.Modified property value.

See Also