Worksheet
ExportDataTable Method (CellRange, Boolean)
|
Exports worksheet data into a DataTable.
Namespace:
Spire.Xls
Assembly:
Spire.XLS (in Spire.XLS.dll) Version: 15.4.0.0 (15.4.0.5046)
Syntax
public DataTable ExportDataTable(
CellRange range,
bool exportColumnNames
)
Public Function ExportDataTable (
range As CellRange,
exportColumnNames As Boolean
) As DataTable
public:
DataTable^ ExportDataTable(
CellRange^ range,
bool exportColumnNames
)
member ExportDataTable :
range : CellRange *
exportColumnNames : bool -> DataTable
Parameters
-
range
-
Type:
Spire.Xls
CellRange
Range to export.
-
exportColumnNames
-
Type:
System
Boolean
Indicates if export column name.
Return Value
Type:
DataTable
exported datatable
See Also