[]
导入指定文件源的所有数据。
public static object[,] ImportData(string fileName, string sourceName)
| Type | Name | Description |
|---|---|---|
| string | fileName | 文件的路径和名称。 |
| string | sourceName | 数据源的名称。源名称可能是: |
| Type | Description |
|---|---|
| object[,] | 数据数组。 |
从文件导入指定范围的数据。
public static object[,] ImportData(string fileName, string worksheetName, int row, int column, int rowCount, int columnCount)
| Type | Name | Description |
|---|---|---|
| string | fileName | 文件的路径和名称。 |
| string | worksheetName | 工作表的名称。 |
| int | row | 范围的起始行。 |
| int | column | 范围的起始列。 |
| int | rowCount | 行数。 |
| int | columnCount | 列数。 |
| Type | Description |
|---|---|
| object[,] | 数据数组。 |
导入指定文件源的所有数据。
public static object[,] ImportData(Stream fileStream, string sourceName)
| Type | Name | Description |
|---|---|---|
| Stream | fileStream | 工作簿的文件流。 |
| string | sourceName | 数据源的名称。源名称可能是: |
| Type | Description |
|---|---|
| object[,] | 数据数组。 |
从文件流中导入指定范围的数据。
public static object[,] ImportData(Stream fileStream, string worksheetName, int row, int column, int rowCount, int columnCount)
| Type | Name | Description |
|---|---|---|
| Stream | fileStream | 工作簿的文件流。 |
| string | worksheetName | 工作表的名称。 |
| int | row | 范围的起始行。 |
| int | column | 范围的起始列。 |
| int | rowCount | 行的数量。 |
| int | columnCount | 列的数量。 |
| Type | Description |
|---|---|
| object[,] | 数据数组。 |