SpreadsheetExtension.SaveCopy(String, DocumentFormat) Method

Saves a document copy using the specified settings.

Namespace: DevExpress.Web.Mvc

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

Declaration

public static byte[] SaveCopy(
    string extensionName,
    DocumentFormat format
)

Parameters

Name Type Description
extensionName String

A string value that specifies the Spreadsheet name.

format DocumentFormat

A DocumentFormat object specifying the document’s format.

Returns

Type Description
Byte[]

An array of bytes where the document is saved.

Remarks

Use the SaveCopy method to save a copy of the specified Spreadsheet’s document to a byte array, 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.).

See Also