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

SpreadsheetControl.LoadDocument(String) Method

Loads the specified file.

Namespace: DevExpress.Xpf.Spreadsheet

Assembly: DevExpress.Xpf.Spreadsheet.v19.1.dll

Declaration

public bool LoadDocument(
    string fileName
)

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