ISpreadsheetComponent.LoadDocument(Byte[], DocumentFormat) Method
Loads a document from a byte array.
Namespace: DevExpress.Spreadsheet
Assembly: DevExpress.Spreadsheet.v19.2.Core.dll
Declaration
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.
Related GitHub Examples
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.