Skip to main content

SpreadsheetExtension.SaveCopy(String, 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 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.).

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the SaveCopy(String, 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