ExpertXls Excel Library for .NET
SaveToCsv Method (worksheetIndex, csvFileName, fieldsSeparator, textEncoding)
Namespaces ► ExpertXls.ExcelLib ► ExcelWorkbook ► SaveToCsv(Int32, String, String, Encoding)
ExpertXls Excel Library for .NET
Saves the worksheet at the specified index to a file in CSV format using the specified text encoding for the output file.
Declaration Syntax

C# | Visual Basic | Visual C++

    public void SaveToCsv(
    	int worksheetIndex,
    	string csvFileName,
    	string fieldsSeparator,
    	Encoding textEncoding
    )

    Public Sub SaveToCsv ( _
    	worksheetIndex As Integer, _
    	csvFileName As String, _
    	fieldsSeparator As String, _
    	textEncoding As Encoding _
    )

    public:
    void SaveToCsv(
    	int worksheetIndex,
    	String^ csvFileName,
    	String^ fieldsSeparator,
    	Encoding^ textEncoding
    )

Parameters

worksheetIndex (Int32)
  The zero based index of the worksheet to be saved.

csvFileName (String)
  The path of the saved CSV file.

fieldsSeparator (String)
  The fields separator in the saved CSV file.

textEncoding (Encoding)
  The text encoding of the output file.

Assembly: ExpertXls.ExcelLib (Module: ExpertXls.ExcelLib) Version: 2.1.0.0 (2.1.0.0)