Back to Devexpress

ISpreadsheetComponent.LoadDocument(Byte[]) Method

officefileapi-devexpress-dot-spreadsheet-dot-ispreadsheetcomponent-dot-loaddocument-x28-system-dot-byte-x29.md

latest1.9 KB
Original Source

ISpreadsheetComponent.LoadDocument(Byte[]) Method

Loads the document from a Byte[] array.

Namespace : DevExpress.Spreadsheet

Assembly : DevExpress.Spreadsheet.v25.2.Core.dll

NuGet Package : DevExpress.Spreadsheet.Core

Declaration

csharp
bool LoadDocument(
    byte[] buffer
)
vb
Function LoadDocument(
    buffer As Byte()
) As Boolean

Parameters

NameTypeDescription
bufferByte[]

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

|

Returns

TypeDescription
Boolean

true , if the document is loaded successfully; 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

ISpreadsheetComponent Interface

ISpreadsheetComponent Members

DevExpress.Spreadsheet Namespace