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

SpreadsheetBuilder.Open(String, Func<Stream>) Method

Opens a document specified by a stream.

Namespace: DevExpress.AspNetCore.Spreadsheet

Assembly: DevExpress.AspNetCore.Spreadsheet.v19.2.dll

Declaration

public SpreadsheetBuilder Open(
    string documentId,
    Func<Stream> contentAccessorByStream
)

Parameters

Name Type Description
documentId String

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

contentAccessorByStream Func<Stream>

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

Returns

Type Description
SpreadsheetBuilder

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

Remarks

Note

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