Syncfusion.XlsIO.Base
Example 


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

SaveAs(String,String,Encoding) Method

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

Parameters

fileName
File to save.
separator
Denotes separator for the CSV file types.
encoding
Encoding to use.
Remarks
This method is supported on Windows Forms, WPF, ASP.NET and ASP.NET MVC platforms only.
Example
The following code illustrates how to saves the worksheet with encoding.
sheet.SaveAs("newFile.csv", ",",Encoding.ASCII);
AssemblyVersion

Syncfusion.XlsIO.Base: 16.4460.0.40

See Also