.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
.NET Core 3.0+
Row

ISpreadsheetComponent.LoadDocument(String) Method

Loads a document from a file.

Namespace: DevExpress.Spreadsheet

Assembly: DevExpress.Spreadsheet.v19.2.Core.dll

Declaration

bool LoadDocument(
    string fileName
)
Function LoadDocument(
    fileName As String
) As Boolean
bool LoadDocument(
    string fileName
)
Function LoadDocument(
    fileName As String
) As Boolean
bool LoadDocument(
    string fileName
)
Function LoadDocument(
    fileName As String
) As Boolean

Parameters

Name Type Description
fileName String

A string specifying the file to load (including the full path).

Parameters

Name Type Description
fileName String

A string specifying the file to load (including the full path).

Parameters

Name Type Description
fileName String

A string specifying the file to load (including the full path).

Returns

Type Description
Boolean

true, if a document is loaded successfully; otherwise, false.

Returns

Type Description
Boolean

true, if a document is loaded successfully; otherwise, false.

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).

See Also