Skip to main content

RichEditExtension.SaveCopy(String, Stream, DocumentFormat) Method

Saves a document copy using the specified settings.

Namespace: DevExpress.Web.Mvc

Assembly: DevExpress.Web.Mvc5.v24.1.dll

NuGet Package: DevExpress.Web.Mvc5

Declaration

public static void SaveCopy(
    string extensionName,
    Stream outputStream,
    DocumentFormat format
)

Parameters

Name Type Description
extensionName String

The RichEdit name.

outputStream Stream

A stream object where to save the document.

format DocumentFormat

The document format.

Remarks

Use the SaveCopy method to save a copy of the active document to a stream in the specified format. This method exports the document with the current changes, but do 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