Back to Devexpress

SpreadsheetControl.LoadDocument(Byte[]) Method

wpf-devexpress-dot-xpf-dot-spreadsheet-dot-spreadsheetcontrol-dot-loaddocument-x28-system-dot-byte-x29.md

latest1.8 KB
Original Source

SpreadsheetControl.LoadDocument(Byte[]) Method

Loads the document from a Byte[] array.

Namespace : DevExpress.Xpf.Spreadsheet

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

NuGet Package : DevExpress.Wpf.Spreadsheet

Declaration

csharp
public bool LoadDocument(
    byte[] buffer
)
vb
Public 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

SpreadsheetControl Class

SpreadsheetControl Members

DevExpress.Xpf.Spreadsheet Namespace