SpreadsheetGear Namespace > IWorkbooks Interface > OpenFromStream Method : OpenFromStream(Stream,String) Method |
'Declaration
Overloads Function OpenFromStream( _ ByVal stream As System.IO.Stream, _ ByVal password As System.String _ ) As IWorkbook
'Usage
Dim instance As IWorkbooks Dim stream As System.IO.Stream Dim password As System.String Dim value As IWorkbook value = instance.OpenFromStream(stream, password)
IWorkbook* OpenFromStream( System.IO.Stream* stream, System.string* password )
IWorkbook^ OpenFromStream( System.IO.Stream^ stream, System.String^ password )
The stream must consist solely of a file which SpreadsheetGear is able to read. If the stream is not seekable, this method will copy the stream to a MemoryStream and read the workbook from the MemoryStream.
The various workbook settings which make a workbook read-only in an end user workbookSet have no affect at this level. These settings are available as IWorkbook properties.
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2