SpreadsheetGear 2017
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.
Overloads Sub SaveToStream( _
   ByVal stream As System.IO.Stream, _
   ByVal fileFormat As FileFormat, _
   ByVal password As System.String _
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
procedure SaveToStream( 
    stream: System.IO.Stream;
    fileFormat: FileFormat;
    password: System.String
function SaveToStream( 
   stream : System.IO.Stream,
   fileFormat : FileFormat,
   password : System.String
void SaveToStream( 
   System.IO.Stream* stream,
   FileFormat fileFormat,
   System.string* password
void SaveToStream( 
   System.IO.Stream^ stream,
   FileFormat fileFormat,
   System.String^ password


The stream to write the workbook to.
The file format to save the workbook in.
The password to open the workbook with.

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
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