Workbook.Workbook

Workbook()

Initializes a new instance of the Workbook class.

public Workbook()

Remarks

The default file format type is Xlsx. If you want to create other types of files, please use Workbook(FileFormatType).

Examples

The following code shows how to use the Workbook constructor to create and initialize a new instance of the class.

[C#]

Workbook workbook = new Workbook();
		

[Visual Basic]

Dim workbook as Workbook = new Workbook()
		

See Also


Workbook(FileFormatType)

Initializes a new instance of the Workbook class.

public Workbook(FileFormatType fileFormatType)
ParameterTypeDescription
fileFormatTypeFileFormatTypeThe new file format.

Remarks

The default file format type is Excel97To2003.

Examples

The following code shows how to use the Workbook constructor to create and initialize a new instance of the class with various file format type.

[C#]

Workbook workbook = new Workbook(FileFormatType.Xlsx);
		

[Visual Basic]

Dim workbook as Workbook = new Workbook(FileFormatType.Xlsx)
		

See Also


Workbook(string)

Initializes a new instance of the Workbook class and open a file.

public Workbook(string file)
ParameterTypeDescription
fileStringThe file name.

See Also


Workbook(Stream)

Initializes a new instance of the Workbook class and open a stream.

public Workbook(Stream stream)
ParameterTypeDescription
streamStreamThe stream.

See Also


Workbook(string, LoadOptions)

Initializes a new instance of the Workbook class and open a file.

public Workbook(string file, LoadOptions loadOptions)
ParameterTypeDescription
fileStringThe file name.
loadOptionsLoadOptionsThe load options

See Also


Workbook(Stream, LoadOptions)

Initializes a new instance of the Workbook class and open stream.

public Workbook(Stream stream, LoadOptions loadOptions)
ParameterTypeDescription
streamStreamThe stream.
loadOptionsLoadOptionsThe load options

See Also