Skip to main content
A newer version of this page is available. .

SpreadsheetControl.LoadDocument(Byte[]) Method

Load the document from a Byte[] array.

Namespace: DevExpress.XtraSpreadsheet

Assembly: DevExpress.XtraSpreadsheet.v18.2.dll

Declaration

public bool LoadDocument(
    byte[] buffer
)

Parameters

Name Type Description
buffer Byte[]

A System.Byte[] object that is an array of bytes containing document data.

Returns

Type Description
Boolean

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

Remarks

The format of the document loaded using this LoadDocument method overload is detected automatically by the built-in IFormatDetectorService implementation. If the format detection fails, an ISpreadsheetComponent.InvalidFormatException is raised.

See Also