SpreadsheetGear 2023
SaveToStream(Stream,FileFormat,String) Method


SpreadsheetGear Namespace > IWorkbook Interface > SaveToStream Method : SaveToStream(Stream,FileFormat,String) Method
The stream to write the workbook to.
The file format to save the workbook in.
The password to open the workbook with.
Saves this workbook to a stream in the specified FileFormat.
Syntax
'Declaration
 
Overloads Sub SaveToStream( _
   ByVal stream As System.IO.Stream, _
   ByVal fileFormat As FileFormat, _
   ByVal password As System.String _
) 
'Usage
 
Dim instance As IWorkbook
Dim stream As System.IO.Stream
Dim fileFormat As FileFormat
Dim password As System.String
 
instance.SaveToStream(stream, fileFormat, password)
void SaveToStream( 
   System.IO.Stream stream,
   FileFormat fileFormat,
   System.string password
)

Parameters

stream
The stream to write the workbook to.
fileFormat
The file format to save the workbook in.
password
The password to open the workbook with.
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
SaveToStream(Stream,FileFormat) Method
Save Method
SaveAs(String,FileFormat,String) Method
SaveToMemory(FileFormat,String) Method
Open(String,String) Method
OpenFromMemory(Byte[],String) Method
OpenFromStream(Stream,String) Method
Protect Method
Unprotect Method