[]
打开指定的Excel文件
[Obsolete]
public void Open(string fileName, string password = null, OpenOptions openOptions = null)
| Type | Name | Description |
|---|---|---|
| string | fileName | Excel文件。 |
| string | password | 文件的密码。 |
| OpenOptions | openOptions | 打开的选项。 |
使用默认选项打开文件。 文件类型从文件扩展名推断。
public void Open(string fileName)
| Type | Name | Description |
|---|---|---|
| string | fileName | 指定的文件。 |
打开 JSON 文件。
public IList<JsonError> Open(string fileName, DeserializationOptions deserializationOptions)
| Type | Name | Description |
|---|---|---|
| string | fileName | 指定的 JSON 文件。 |
| DeserializationOptions | deserializationOptions | JSON 反序列化选项。 |
| Type | Description |
|---|---|
| IList<JsonError> | JSON 的错误列表 |
打开指定的 Excel 文件流。
[Obsolete]
public void Open(Stream fileStream, string password = null, OpenOptions openOptions = null)
| Type | Name | Description |
|---|---|---|
| Stream | fileStream | 文件流。 |
| string | password | 文件的密码。 |
| OpenOptions | openOptions | 打开选项。 |
使用指定的文件格式打开文件。
public void Open(string fileName, OpenFileFormat fileFormat)
| Type | Name | Description |
|---|---|---|
| string | fileName | 指定的文件。 |
| OpenFileFormat | fileFormat | 文件的格式。 |
使用指定的文件格式打开流。
public void Open(Stream fileStream, OpenFileFormat fileFormat)
| Type | Name | Description |
|---|---|---|
| Stream | fileStream | 指定的文件流。 |
| OpenFileFormat | fileFormat | 文件流的格式。 |
打开文件流。
public void Open(Stream fileStream)
| Type | Name | Description |
|---|---|---|
| Stream | fileStream | 指定的文件流。 |
使用指定选项打开文件。
public void Open(string fileName, OpenOptionsBase options)
| Type | Name | Description |
|---|---|---|
| string | fileName | Excel文件。 |
| OpenOptionsBase | options | 打开文件的选项。可能的类型: |
使用指定的选项打开流。
public void Open(Stream fileStream, OpenOptionsBase options)
| Type | Name | Description |
|---|---|---|
| Stream | fileStream | 文件流。 |
| OpenOptionsBase | options | 打开文件流的格式。可能的类型: |