Cells.ExportDataTableAsString

ExportDataTableAsString(int, int, int, int)

Exports data in the Cells collection to a DataTable object.

public DataTable ExportDataTableAsString(int firstRow, int firstColumn, int totalRows, 
    int totalColumns)
ParameterTypeDescription
firstRowInt32The row number of the first cell to export out.
firstColumnInt32The column number of the first cell to export out.
totalRowsInt32Number of rows to be imported.
totalColumnsInt32Number of columns to be imported.

Return Value

Exported DataTable object.

Remarks

All data in the Cells collection are converted to strings.

See Also


ExportDataTableAsString(int, int, int, int, bool)

Exports data in the Cells collection to a DataTable object.

public DataTable ExportDataTableAsString(int firstRow, int firstColumn, int totalRows, 
    int totalColumns, bool exportColumnName)
ParameterTypeDescription
firstRowInt32The row number of the first cell to export out.
firstColumnInt32The column number of the first cell to export out.
totalRowsInt32Number of rows to be imported.
totalColumnsInt32Number of columns to be imported.
exportColumnNameBooleanIndicates whether the data in the first row are exported to the column name of the DataTable.

Return Value

Exported DataTable object.

Remarks

All data in the Cells collection are converted to strings.

See Also