SpreadsheetBuilder.Open(String, Func<Byte[]>) Method
Opens a document specified by a stream.
Namespace: DevExpress.AspNetCore.Spreadsheet
Assembly: DevExpress.AspNetCore.Spreadsheet.v20.2.dll
NuGet Package: DevExpress.AspNetCore.Spreadsheet
Declaration
public SpreadsheetBuilder Open(
string documentId,
Func<byte[]> contentAccessorByBytes
)
Parameters
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. |
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.