ExcelWorkbookLoadFromCsv(Stream, String, ExcelWorkbookFormat) Method
Loads a CSV stream into a worksheet. The default encoding of the text in CSV is assumed to be UTF-8.
The values from CSV will be imported in the top left corner of the worksheet.
Namespace: Winnovative.ExcelLibAssembly: WnvXls_NetCore (in WnvXls_NetCore.dll) Version: 11.0.0
public static ExcelWorkbook LoadFromCsv(
Stream csvStream,
string fieldsSeparator,
ExcelWorkbookFormat workbookFormat
)
Public Shared Function LoadFromCsv (
csvStream As Stream,
fieldsSeparator As String,
workbookFormat As ExcelWorkbookFormat
) As ExcelWorkbook
public:
static ExcelWorkbook^ LoadFromCsv(
Stream^ csvStream,
String^ fieldsSeparator,
ExcelWorkbookFormat workbookFormat
)
static member LoadFromCsv :
csvStream : Stream *
fieldsSeparator : string *
workbookFormat : ExcelWorkbookFormat -> ExcelWorkbook
- csvStream Stream
- The stream containing the CSV document.
- fieldsSeparator String
- The fields separator in CSV (usually ',')
- workbookFormat ExcelWorkbookFormat
- The format of the created workbook ( Excel 97-2003 .xls or Excel 2007 .xlsx).
ExcelWorkbookThe newly created workbook.