[]
Import all the data of the specified source of the file.
public static object[,] ImportData(string fileName, string sourceName)
| Type | Name | Description |
|---|---|---|
| string | fileName | The path and name for the file. |
| string | sourceName | The name of the data source. The source name could be: |
| Type | Description |
|---|---|
| object[,] | An array for the data. |
Import the data of a specified range from a file.
public static object[,] ImportData(string fileName, string worksheetName, int row, int column, int rowCount, int columnCount)
| Type | Name | Description |
|---|---|---|
| string | fileName | The path and name for the file. |
| string | worksheetName | The name of the worksheet. |
| int | row | The first row of the range. |
| int | column | The first column of the range. |
| int | rowCount | The count of the rows. |
| int | columnCount | The count of the columns. |
| Type | Description |
|---|---|
| object[,] | An array for the data. |
Import all the data of the specified source of the file.
public static object[,] ImportData(Stream fileStream, string sourceName)
| Type | Name | Description |
|---|---|---|
| Stream | fileStream | The fileStream of a workbook. |
| string | sourceName | The name of the data source. The source name could be: |
| Type | Description |
|---|---|
| object[,] | An array for the data. |
Import the data of a specified range from a fileStream.
public static object[,] ImportData(Stream fileStream, string worksheetName, int row, int column, int rowCount, int columnCount)
| Type | Name | Description |
|---|---|---|
| Stream | fileStream | The fileStream of a workbook. |
| string | worksheetName | The name of the worksheet. |
| int | row | The first row of the range. |
| int | column | The first column of the range. |
| int | rowCount | The count of the rows. |
| int | columnCount | The count of the columns. |
| Type | Description |
|---|---|
| object[,] | An array for the data. |