Back to Devexpress

SpreadsheetBuilder.Open(String) Method

aspnetcore-devexpress-dot-aspnetcore-dot-spreadsheet-dot-spreadsheetbuilder-dot-open-x28-system-dot-string-x29.md

latest1.9 KB
Original Source

SpreadsheetBuilder.Open(String) Method

Opens a document from a file system.

Namespace : DevExpress.AspNetCore.Spreadsheet

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

NuGet Package : DevExpress.AspNetCore.Spreadsheet

Declaration

csharp
public SpreadsheetBuilder Open(
    string path
)

Parameters

NameTypeDescription
pathString

A document path.

|

Returns

TypeDescription
SpreadsheetBuilder

An object that can be used to further configure the Spreadsheet.

|

Remarks

This method determines the document’s format automatically. Pass the document format as a parameter to the Open(String, DocumentFormat) method overload to disable automatic detection and improve performance when you open a document.

The example below demonstrates how to open a document from a file system:

razor
@(Html.DevExpress()
    .Spreadsheet("spreadsheet")
    .Open("path-to-your-document")
)

Refer to the following section for more information: Open a Document from a File System.

See Also

SpreadsheetBuilder Class

SpreadsheetBuilder Members

DevExpress.AspNetCore.Spreadsheet Namespace