Skip to main content

SpreadsheetBuilder.Open(String) Method

Opens a document from a file system.

Namespace: DevExpress.AspNetCore.Spreadsheet

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

Declaration

public SpreadsheetBuilder Open(
    string path
)

Parameters

Name Type Description
path String

A document path.

Returns

Type Description
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:

@(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