SpreadsheetGear 2023
SaveToMemory(FileFormat,String) Method

SpreadsheetGear Namespace > IWorkbook Interface > SaveToMemory Method : SaveToMemory(FileFormat,String) Method
Saves this workbook to a newly created memory buffer in the specified FileFormat.
Overloads Function SaveToMemory( _
   ByVal fileFormat As FileFormat, _
   ByVal password As System.String _
) As System.Byte()
Dim instance As IWorkbook
Dim fileFormat As FileFormat
Dim password As System.String
Dim value() As System.Byte
value = instance.SaveToMemory(fileFormat, password)
System.byte[] SaveToMemory( 
   FileFormat fileFormat,
   System.string password



Return Value

The memory buffer with the saved workbook.
Note that the various workbook settings which make a workbook read-only in an end user workbookSet have no affect at this level.

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


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