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

C# | Visual Basic | Visual C++

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

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

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

Parameters

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

csvStream (Stream)
  The output stream. For saving in memory a MemoryStream can be used.

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

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

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