CellsImportDataTable Method (DataTable, Boolean, String)

Note: This API is now obsolete.

Imports a DataTable object into a worksheet.

Namespace:  Aspose.Cells
Assembly:  Aspose.Cells (in Aspose.Cells.dll) Version: 21.6.0.0 (21.6)
Syntax
[ObsoleteAttribute("Use Cells.ImportData(DataTable,int,int,ImportTableOptions) method, instead.")]
public int ImportDataTable(
	DataTable dataTable,
	bool isFieldNameShown,
	string startCell
)

Parameters

dataTable
Type: System.DataDataTable
The DataTable object to be imported.
isFieldNameShown
Type: SystemBoolean
Indicates whether the field name of the datatable will be imported to the first row.
startCell
Type: SystemString
The name of start cell to insert the DataTable, such as "A2".

Return Value

Type: Int32
Total number of rows imported
Remarks
NOTE: This member is now obsolete. Instead, please use Cells.ImportData(DataTable,int,int,ImportTableOptions) method, instead. This property will be removed 12 months later since December 2018. Aspose apologizes for any inconvenience you may have experienced.
See Also