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.
Syntax
'Declaration
 
Overloads Function SaveToMemory( _
   ByVal fileFormat As FileFormat, _
   ByVal password As System.String _
) As System.Byte()
'Usage
 
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
)

Parameters

fileFormat
password

Return Value

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

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

Reference

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