ExpertXls Excel Library for .NET
SaveToCsv Method (worksheetIndex, csvFileName, fieldsSeparator)
Namespaces ► ExpertXls.ExcelLib ► ExcelWorkbook ► SaveToCsv(Int32, String, String)
ExpertXls Excel Library for .NET
Saves the worksheet at the specified index to a file in CSV format. The default UTF-8 text encoding is used when saving the output file.
Declaration Syntax

C# | Visual Basic | Visual C++

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

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

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

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

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