SpreadsheetControl.LoadDocument(String) Method
Loads the specified file.
Namespace: DevExpress.Xpf.Spreadsheet
Assembly: DevExpress.Xpf.Spreadsheet.v25.1.dll
NuGet Package: DevExpress.Wpf.Spreadsheet
Declaration
Parameters
| Name | Type | Description |
|---|---|---|
| fileName | String | A string specifying the path of the file to load. |
Returns
| Type | Description |
|---|---|
| Boolean | true, if a document is loaded successfully; otherwise, false. |
Remarks
When you use this method to load a document from a file, the document format is identified automatically based on its content (regardless of the filename extension).
If the data has an incorrect format, the SpreadsheetControl.InvalidFormatException event fires.
See Also