Skip to main content
A newer version of this page is available. .
.NET Framework 4.5.2+
Row

ISpreadsheetComponent.LoadDocument(Byte[], DocumentFormat) Method

Loads a document from a byte array.

Namespace: DevExpress.Spreadsheet

Assembly: DevExpress.Spreadsheet.v19.1.Core.dll

Declaration

bool LoadDocument(
    byte[] buffer,
    DocumentFormat format
)

Parameters

Name Type Description
buffer Byte[]

A Byte[] object that is an array of bytes containing document data in the specified format.

format DocumentFormat

A DocumentFormat enumeration member specifying the format of the document to be loaded.

Returns

Type Description
Boolean

true, if the document is successfully loaded; otherwise, false.

Remarks

Note

With the format method parameter passed as DocumentFormat.Undefined, the loaded document format is detected automatically.

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