Syncfusion.XlsIO.Base
Example 


Syncfusion.XlsIO Namespace > IWorksheet Interface > SaveAs Method : SaveAs(Stream,String,Encoding) Method
Stream to save.
Denotes separator for the CSV file types.
Encoding to use.

SaveAs(Stream,String,Encoding) Method

Saves worksheet as stream using separator with specified encoding. Used only for CSV files.
Syntax
'Declaration
 
Overloads Sub SaveAs( _
   ByVal stream As Stream, _
   ByVal separator As String, _
   ByVal encoding As Encoding _
) 
'Usage
 
Dim instance As IWorksheet
Dim stream As Stream
Dim separator As String
Dim encoding As Encoding
 
instance.SaveAs(stream, separator, encoding)

Parameters

stream
Stream to save.
separator
Denotes separator for the CSV file types.
encoding
Encoding to use.
Example
The following code illustrates how to saves the worksheet as stream with encoding.
sheet.SaveAs(stream, ",",Encoding.ASCII);
AssemblyVersion

Syncfusion.XlsIO.Base: 16.3460.0.29

See Also