Description
Reads CSV TXT files from the stream.

Namespace: Docs.Excel
Assembly: Excel (in Excel.dll) Version: 3.1.0.0 (3.1)

Syntax

         
 C#  Visual Basic  Visual C++ 
public static ExcelWorkbook ReadCSV(
	Stream CsvStream,
	char csvDelimeter,
	Encoding characterEncoding,
	ProgressEventHandler readingProgressHandler
)
Public Shared Function ReadCSV ( _
	CsvStream As Stream, _
	csvDelimeter As Char, _
	characterEncoding As Encoding, _
	readingProgressHandler As ProgressEventHandler _
) As ExcelWorkbook
public:
static ExcelWorkbook^ ReadCSV(
	Stream^ CsvStream, 
	wchar_t csvDelimeter, 
	Encoding^ characterEncoding, 
	ProgressEventHandler^ readingProgressHandler
)

Parameters

CsvStream
Stream
The stream of CSV or TXT file.
csvDelimeter
Char
Char that separates cells.
characterEncoding
Encoding
Charset Excel file.
readingProgressHandler
ProgressEventHandler
The reference to handler of event ExcelWorkbook.ReadingProgress.

Return Value

The workbook as ExcelWorkbook object.

See Also