ASPxSpreadsheet.Open(String, DocumentFormat) Method
Opens a document in the specified format from a file system.
Namespace: DevExpress.Web.ASPxSpreadsheet
Assembly: DevExpress.Web.ASPxSpreadsheet.v24.2.dll
Declaration
Parameters
Name | Type | Description |
---|---|---|
pathToDocument | String | The path to a document to open. |
format | DocumentFormat | The document format. |
Remarks
Call this Open method to open a document from the server’s file system. When you open a document for the first time, the control loads it to the server’s memory and generates a DocumentId from the pathToDocument parameter value.
If the document is already open, the method activates the document stored in the server’s memory.
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.