SpreadsheetGear 2023
OpenFromMemory(Byte[],String) Method

SpreadsheetGear Namespace > IWorkbooks Interface > OpenFromMemory Method : OpenFromMemory(Byte[],String) Method
The buffer to open the workbook from.
The password to use when opening the workbook.
Open an existing workbook in a newly created instance of IWorkbook.
Overloads Function OpenFromMemory( _
   ByVal buffer() As System.Byte, _
   ByVal password As System.String _
) As IWorkbook
Dim instance As IWorkbooks
Dim buffer() As System.Byte
Dim password As System.String
Dim value As IWorkbook
value = instance.OpenFromMemory(buffer, password)
IWorkbook OpenFromMemory( 
   System.byte[] buffer,
   System.string password


The buffer to open the workbook from.
The password to use when opening the workbook.

Return Value

The opened workbook.
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

See Also


IWorkbooks Interface
IWorkbooks Members
Overload List
OpenFromMemory(Byte[]) Method
Save Method
SaveAs(String,FileFormat,String) Method
SaveToMemory(FileFormat,String) Method
SaveToStream(Stream,FileFormat,String) Method
Open(String,String) Method
OpenFromStream(Stream,String) Method