SpreadsheetControl.LoadDocument(String) Method
SECURITY-RELATED CONSIDERATIONS
Using file paths sourced from untrusted input may expose unauthorized files or allow unintended file access. Always validate and normalize all external paths to prevent path manipulation.
Loads the specified file.
Namespace: DevExpress.Xpf.Spreadsheet
Assembly: DevExpress.Xpf.Spreadsheet.v25.2.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 |
|
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.