A newer version of this page is available. Switch to the current version.

RichEditExtension.SaveCopy(String, Stream, DocumentFormat) Method

Saves a document copy using the specified settings.

Namespace: DevExpress.Web.Mvc

Assembly: DevExpress.Web.Mvc5.v18.2.dll


public static void SaveCopy(
    string extensionName,
    Stream outputStream,
    DocumentFormat format
Public Shared Sub SaveCopy(
    extensionName As String,
    outputStream As Stream,
    format As DocumentFormat


Name Type Description
extensionName String

A string value that specifies the RichEdit name.

outputStream Stream

A stream object where the document is to be saved.

format DocumentFormat

A DocumentFormat object specifying the document format.


Use the SaveCopy method to save a copy of the specified RichEdit's document to a stream, specifying the document's format. This method just exports the document and does not affect the original document state (it does not initiate document synchronization, does not apply client changes to the document model, etc.).

The correct RichEdit's state is available on a controller only if the form containing RichEdit is submitted or a request to the server is sent using the RichEdit's callback.

See Also