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

C# | Visual Basic | Visual C++

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

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

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

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.

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