Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

SpreadsheetBuilder.Open(String) Method

Opens a document from a file system.

Namespace: DevExpress.AspNetCore.Spreadsheet

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

NuGet Package: DevExpress.AspNetCore.Spreadsheet

#Declaration

C#
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