ExcelWorkbookSaveToCsv(Int32, Stream, String, Encoding, Boolean) Method
Saves the worksheet at the specified index to a stream in CSV format using the specified text encoding for the output.
Namespace: Winnovative.ExcelLibAssembly: WnvXls_NetCore (in WnvXls_NetCore.dll) Version: 11.0.0
public void SaveToCsv(
int worksheetIndex,
Stream csvStream,
string fieldsSeparator,
Encoding textEncoding,
bool closeStream
)
Public Sub SaveToCsv (
worksheetIndex As Integer,
csvStream As Stream,
fieldsSeparator As String,
textEncoding As Encoding,
closeStream As Boolean
)
public:
void SaveToCsv(
int worksheetIndex,
Stream^ csvStream,
String^ fieldsSeparator,
Encoding^ textEncoding,
bool closeStream
)
member SaveToCsv :
worksheetIndex : int *
csvStream : Stream *
fieldsSeparator : string *
textEncoding : Encoding *
closeStream : bool -> unit
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.
- closeStream Boolean
- A flag indicating if the output stream should be automatically closed after the worksheet is saved.