Winnovative Excel Library

ExcelWorksheetGetDataTable Method (ExcelRange, Boolean)

Winnovative Excel Library Documentation
Gets a System.Data.DataTable object from the specified source range. If the getColumnNames parameter is true the first row of the range will be used to obtain names for the DataTable columns.

Namespace:  Winnovative.ExcelLib
Assembly:  wnvxls (in wnvxls.dll) Version: 10.0.0.0 (10.0.0.0)
Syntax

public DataTable GetDataTable(
	ExcelRange sourceRange,
	bool getColumnNames
)

Parameters

sourceRange
Type: Winnovative.ExcelLibExcelRange
The worksheet range from where to get the values.
getColumnNames
Type: SystemBoolean
If this parameter is true the first row of the range will be used to obtain names for the DataTable columns.

Return Value

Type: DataTable
The resulted DataTable.
See Also

Reference