Skip to main content

ASPxRichEdit.SaveCopy(DocumentFormat) Method

Saves a copy of the active document in the specified format to a byte array.

Namespace: DevExpress.Web.ASPxRichEdit

Assembly: DevExpress.Web.ASPxRichEdit.v22.1.dll

Declaration

public byte[] SaveCopy(
    DocumentFormat format
)

Parameters

Name Type Description
format DocumentFormat

The document format.

Returns

Type Description
Byte[]

An array of bytes where to save the document.

Remarks

Use the SaveCopy method to save a copy of the active document to a byte array 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.).

using DevExpress.Web.Office;

byte[] documentContentAsByteArray = ASPxRichEdit1.SaveCopy(DocumentFormat.Rtf);
// Your custom logic to save a document to a custom storage
See Also