.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+

Document.SaveDocument(String, DocumentFormat) Method

Saves the document to a file, specifying the document's format.

Namespace: DevExpress.XtraRichEdit.API.Native

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


void SaveDocument(
    string fileName,
    DocumentFormat format
Sub SaveDocument(
    fileName As String,
    format As DocumentFormat


Name Type Description
fileName String

A string value specifying the path to a file into which to save the control's document.

format DocumentFormat

One of the DocumentFormat enumeration values.


You can check the Document.RequiredExportCapabilities, to be sure that the chosen export format supports them.


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

See Also