Saves the worksheet at the specified index to a stream in CSV format using the specified text encoding for the output.
Namespace: Winnovative.ExcelLib
Assembly: wnvxls (in wnvxls.dll) Version: 10.0.0.0 (10.0.0.0)
Syntax
public void SaveToCsv( int worksheetIndex, Stream csvStream, string fieldsSeparator, Encoding textEncoding, bool closeStream )
Parameters
- worksheetIndex
- Type: SystemInt32
The zero based index of the worksheet to be saved. - csvStream
- Type: System.IOStream
The output stream. For saving in memory a MemoryStream can be used. - fieldsSeparator
- Type: SystemString
The fields separator in the saved CSV document. - textEncoding
- Type: System.TextEncoding
The text encoding of the output strea. - closeStream
- Type: SystemBoolean
A flag indicating if the output stream should be automatically closed after the worksheet is saved.
See Also