SpreadsheetGear 2023
SaveToMemory Method (IWorksheet)

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



Return Value

The memory buffer with the saved worksheet.
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


IWorksheet Interface
IWorksheet Members
SaveToMemory(FileFormat) Method