[]
将数据保存到指定的Excel文件。
[Obsolete]
public void Save(string fileName, string password = null, SaveOptions saveOptions = null)
| Type | Name | Description |
|---|---|---|
| string | fileName | Excel文件。 |
| string | password | 文件的密码。 |
| SaveOptions | saveOptions | 保存的选项。 |
将工作簿保存到磁盘。
public void Save(string fileName)
| Type | Name | Description |
|---|---|---|
| string | fileName | 文件名。 |
将工作簿保存到指定的 Excel 文件流。
[Obsolete]
public void Save(Stream fileStream, string password = null, SaveOptions saveOptions = null)
| Type | Name | Description |
|---|---|---|
| Stream | fileStream | 文件流。 |
| string | password | 文件的密码。 |
| SaveOptions | saveOptions | 保存的选项。 |
将工作簿保存到流中。
public void Save(Stream fileStream)
| Type | Name | Description |
|---|---|---|
| Stream | fileStream | 文件流。 |
使用指定的文件格式将工作簿保存到文件。
public void Save(string fileName, SaveFileFormat fileFormat)
| Type | Name | Description |
|---|---|---|
| string | fileName | 指定的文件。 |
| SaveFileFormat | fileFormat | 文件的格式。 |
使用指定的文件格式将工作簿保存到流中。
public void Save(Stream fileStream, SaveFileFormat fileFormat)
| Type | Name | Description |
|---|---|---|
| Stream | fileStream | 指定的文件流。 |
| SaveFileFormat | fileFormat | 文件流的格式。 |
使用指定的选项将工作簿保存到文件。
public void Save(string fileName, SaveOptionsBase options)
| Type | Name | Description |
|---|---|---|
| string | fileName | 指定的文件。 |
| SaveOptionsBase | options | 保存文件的选项。可能的类型: |
使用指定的选项将工作簿保存到流中。
public void Save(Stream fileStream, SaveOptionsBase options)
| Type | Name | Description |
|---|---|---|
| Stream | fileStream | 指定的文件流。 |
| SaveOptionsBase | options | 保存文件流的选项。可能的类型: |