Click or drag to resize

ExcelWorkbookSaveToCsv(Int32, Stream, String, Encoding) Method

Saves the worksheet at the specified index to a stream in CSV format using the specified text encoding for the output.

Namespace: ExpertXls.ExcelLib
Assembly: expertxls (in expertxls.dll) Version: 9.0.0
Syntax
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.
See Also