[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.IWorkbook.Open

Open Method

Open(string)

Opens the file.

Declaration
void Open(string fileName)
Sub Open(fileName As String)
Parameters
Type Name Description
string fileName

The specified file.

Open(string, DeserializationOptions)

Opens the JSON file.

Declaration
IList<JsonError> Open(string fileName, DeserializationOptions deserializationOptions)
Function Open(fileName As String, deserializationOptions As DeserializationOptions) As IList(Of JsonError)
Parameters
Type Name Description
string fileName

The specified JSON file.

DeserializationOptions deserializationOptions

The JSON deserialization options.

Returns
Type Description
IList<JsonError>

The error list of the JSON.

Open(string, string, OpenOptions)

Opens the specified excel file.

Declaration
void Open(string fileName, string password = null, OpenOptions openOptions = null)
Sub Open(fileName As String, Optional password As String = Nothing, Optional openOptions As OpenOptions = Nothing)
Parameters
Type Name Description
string fileName

The excel file.

string password

The password of the file.

OpenOptions openOptions

Options for opening.

Remarks

This method is now obsolete.

Open(Stream)

Opens the file stream.

Declaration
void Open(Stream fileStream)
Sub Open(fileStream As Stream)
Parameters
Type Name Description
Stream fileStream

The specified file stream.

Open(Stream, string, OpenOptions)

Opens the specified excel file stream.

Declaration
void Open(Stream fileStream, string password = null, OpenOptions openOptions = null)
Sub Open(fileStream As Stream, Optional password As String = Nothing, Optional openOptions As OpenOptions = Nothing)
Parameters
Type Name Description
Stream fileStream

The file stream.

string password

The password of the file.

OpenOptions openOptions

Options for opening.

Remarks

This method is now obsolete.

Open(string, OpenFileFormat)

Opens the specified format file.

Declaration
void Open(string fileName, OpenFileFormat fileFormat)
Sub Open(fileName As String, fileFormat As OpenFileFormat)
Parameters
Type Name Description
string fileName

The specified file.

OpenFileFormat fileFormat

The format of the file.

Open(Stream, OpenFileFormat)

Opens the specified format file stream.

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

The specified file stream.

OpenFileFormat fileFormat

The format of the file stream.

Open(string, OpenOptionsBase)

Opens the file with specified options.

Declaration
void Open(string fileName, OpenOptionsBase options)
Sub Open(fileName As String, options As OpenOptionsBase)
Parameters
Type Name Description
string fileName

The excel file.

OpenOptionsBase options

The options of opening the file. Possible types:

Open(Stream, OpenOptionsBase)

Opens the stream with specified options.

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

The file stream.

OpenOptionsBase options

The format of opening the file stream. Possible types: