NativeExcel for .Net Developer's Reference

IWorkbook.OpenMethod(String, String)

Opens an existing workbook from a file.

[Visual Basic]
FunctionOpen(_
ByValFilenameAsString,_
ByValPasswordAsString_
)AsBoolean
[C#]
boolOpen(
stringFilename,
stringPassword
);
[C++]
boolOpen(
String*Filename,
String*Password
);
[JScript]
functionOpen(
StringFilename,
StringPassword
):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.
Password
A string that contains the password required to open a protected workbook.

Return Value

Returns true if it succeeded, false otherwise.

See Also

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