NativeExcel for .Net Developer's Reference

IWorkbook.OpenMethod(Stream, String)

Opens an existing workbook from a stream.

[Visual Basic]
FunctionOpen(_
ByValinputStreamAsStream,_
ByValPasswordAsString_
)AsBoolean
[C#]
boolOpen(
StreaminputStream,
stringPassword
);
[C++]
boolOpen(
Stream*inputStream,
String*Password
);
[JScript]
functionOpen(
StreaminputStream,
StringPassword
):bool;

Parameters

inputStream
The input stream containing the workbook to be opened.
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 | OpenWorkbook