ExcelWorkbookSaveToCsv Method (Int32, Stream, String) |
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.
Namespace:
ExpertXls.ExcelLib
Assembly:
expertxls (in expertxls.dll) Version: 7.0.0
Syntax public void SaveToCsv(
int worksheetIndex,
Stream csvStream,
string fieldsSeparator
)
Public Sub SaveToCsv (
worksheetIndex As Integer,
csvStream As Stream,
fieldsSeparator As String
)
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.
See Also