Skip to main content

SpreadsheetBuilder.Open(String, Func<Byte[]>) Method

Opens a document specified by a stream.

Namespace: DevExpress.AspNetCore.Spreadsheet

Assembly: DevExpress.AspNetCore.Spreadsheet.v22.1.dll


public SpreadsheetBuilder Open(
    string documentId,
    Func<byte[]> contentAccessorByBytes


Name Type Description
documentId String

A string value that uniquely identifies the document to open (the document’s DocumentId).

contentAccessorByBytes Func<Byte[]>

A method delegate to obtain a stream from which to open the document.


Type Description

A SpreadsheetBuilder that can be used to further configure the Spreadsheet.



This overload determines a document’s format automatically, but this process reduces the method’s performance. You can accelerate the method’s performance by specifying a document’s format manually using the overload with the DocumentFormat parameter.

After opening, the loaded document can be accessed via the Document property.

See Also