NativeExcel for .Net Developer's Reference

IWorkbook.OpenMethod(String)

Opens an existing workbook from a file.

[Visual Basic]
FunctionOpen(_
ByValFilenameAsString_
)AsBoolean
[C#]
boolOpen(
stringFilename
);
[C++]
boolOpen(
String*Filename
);
[JScript]
functionOpen(
StringFilename
):bool;

Parameters

Filename
A string that indicates the name of the file to be opened. You can include a full path; if you don't, workbook opens the file in the current folder.

Return Value

Returns true if it succeeded, false otherwise.

See Also

IWorkbook Interface | NativeExcel Namespace | IWorkbook.Open Overload List | Factory.OpenWorkbook Method