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

ASPxSpreadsheet.Open(SpreadsheetDocumentInfo) Method

Activates a previously opened document.

Namespace: DevExpress.Web.ASPxSpreadsheet

Assembly: DevExpress.Web.ASPxSpreadsheet.v21.2.dll

NuGet Package: DevExpress.Web.Office

Declaration

public void Open(
    SpreadsheetDocumentInfo documentInfo
)

Parameters

Name Type Description
documentInfo SpreadsheetDocumentInfo

An object that contains information about the document to open.

Remarks

Call this Open method to activate a previously opened document.

var documentInfo = (SpreadsheetDocumentInfo)DocumentManager.FindDocument("myDocumentId");
ASPxSpreadsheet1.Open(documentInfo);

Note

We recommend that you do not use the LoadDocument method to open a document. When you call this method, the ASPxSpreadsheet does not receive information about the opened document and cannot work with it correctly.

See Also