SpreadsheetControl.LoadDocument(String) Method
In This Article
Loads the specified file.
Namespace: DevExpress.Xpf.Spreadsheet
Assembly: DevExpress.Xpf.Spreadsheet.v24.2.dll
NuGet Package: DevExpress.Wpf.Spreadsheet
#Declaration
#Parameters
Name | Type | Description |
---|---|---|
file |
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