CellsExportDataTableAsString Method (Int32, Int32, Int32, Int32, Boolean)

Exports data in the Cells collection to a DataTable object.

Namespace:  Aspose.Cells
Assembly:  Aspose.Cells (in Aspose.Cells.dll) Version: 21.6.0.0 (21.6)
Syntax
public DataTable ExportDataTableAsString(
	int firstRow,
	int firstColumn,
	int totalRows,
	int totalColumns,
	bool exportColumnName
)

Parameters

firstRow
Type: SystemInt32
The row number of the first cell to export out.
firstColumn
Type: SystemInt32
The column number of the first cell to export out.
totalRows
Type: SystemInt32
Number of rows to be imported.
totalColumns
Type: SystemInt32
Number of columns to be imported.
exportColumnName
Type: SystemBoolean
Indicates whether the data in the first row are exported to the column name of the DataTable.

Return Value

Type: DataTable
Exported DataTable object.
Remarks
All data in the Cells collection are converted to strings.
See Also