Worksheet.ImportDataTable

Worksheet.ImportDataTable method

Imports a DataTable object into a worksheet.

public int ImportDataTable(DataTable dataTable, bool isFieldNameShown, int firstRow, 
    int firstColumn)
ParameterTypeDescription
dataTableDataTableThe DataTable object to be imported.
isFieldNameShownBooleanIndicates whether the field name of the datatable will be imported to the first row.
firstRowInt32The row number of the first cell to import.
firstColumnInt32The column number of the first cell to import.

Return Value

Total number of rows imported.

See Also