[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.Workbook.Open

Open Method

Open(string, string, OpenOptions)

打开指定的Excel文件

Declaration
[Obsolete]
public void Open(string fileName, string password = null, OpenOptions openOptions = null)
Parameters
Type Name Description
string fileName

Excel文件。

string password

文件的密码。

OpenOptions openOptions

打开的选项。

Implements

Open(string)

使用默认选项打开文件。 文件类型从文件扩展名推断。

Declaration
public void Open(string fileName)
Parameters
Type Name Description
string fileName

指定的文件。

Implements

Open(string, DeserializationOptions)

打开 JSON 文件。

Declaration
public IList<JsonError> Open(string fileName, DeserializationOptions deserializationOptions)
Parameters
Type Name Description
string fileName

指定的 JSON 文件。

DeserializationOptions deserializationOptions

JSON 反序列化选项。

Returns
Type Description
IList<JsonError>

JSON 的错误列表

Implements

Open(Stream, string, OpenOptions)

打开指定的 Excel 文件流。

Declaration
[Obsolete]
public void Open(Stream fileStream, string password = null, OpenOptions openOptions = null)
Parameters
Type Name Description
Stream fileStream

文件流。

string password

文件的密码。

OpenOptions openOptions

打开选项。

Implements

Open(string, OpenFileFormat)

使用指定的文件格式打开文件。

Declaration
public void Open(string fileName, OpenFileFormat fileFormat)
Parameters
Type Name Description
string fileName

指定的文件。

OpenFileFormat fileFormat

文件的格式。

Implements

Open(Stream, OpenFileFormat)

使用指定的文件格式打开流。

Declaration
public void Open(Stream fileStream, OpenFileFormat fileFormat)
Parameters
Type Name Description
Stream fileStream

指定的文件流。

OpenFileFormat fileFormat

文件流的格式。

Implements

Open(Stream)

打开文件流。

Declaration
public void Open(Stream fileStream)
Parameters
Type Name Description
Stream fileStream

指定的文件流。

Implements

Open(string, OpenOptionsBase)

使用指定选项打开文件。

Declaration
public void Open(string fileName, OpenOptionsBase options)
Parameters
Type Name Description
string fileName

Excel文件。

OpenOptionsBase options

打开文件的选项。可能的类型:

Implements

Open(Stream, OpenOptionsBase)

使用指定的选项打开流。

Declaration
public void Open(Stream fileStream, OpenOptionsBase options)
Parameters
Type Name Description
Stream fileStream

文件流。

OpenOptionsBase options

打开文件流的格式。可能的类型:

Implements