Skip to main content
A newer version of this page is available. .

RichEditExtension.SaveCopy(String, Stream, DocumentFormat) Method

Saves a document copy using the specified settings.

Namespace: DevExpress.Web.Mvc

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

NuGet Package: DevExpress.Web.Mvc5

Declaration

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

Parameters

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.

Remarks

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.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the SaveCopy(String, Stream, DocumentFormat) method.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also