[]
Contains information about an imported range.
A DataImportResult is returned by ImportData(IEnumerable, DataImportOptions)
and ImportData(DataTable, DataImportOptions). It describes the size
of the imported data at the target location, including how many rows and columns were
imported.
public class DataImportResult
Public Class DataImportResult
object[,] values = { { "Name", "Score" }, { "Alice", 100 } };
DataImportResult result = worksheet.Range["A1"].ImportData(values);
int rowsImported = result.RowsImported;
int columnsImported = result.ColumnsImported;
| Name | Description |
|---|---|
| ColumnsImported | How many columns were imported to the specified location. |
| RowsImported | How many rows were imported to the specified location. |