Workbook

Workbook()

Initializes a new instance of the Workbook class.

public Workbook()

Remarks

The default file format type is Xlsx. To create other format file type, 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)
Parameter Type Description
fileFormatType FileFormatType The 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.

[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)
Parameter Type Description
file String The file name.

See Also


Workbook(Stream)

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

public Workbook(Stream stream)
Parameter Type Description
stream Stream The stream.

See Also


Workbook(string, LoadOptions)

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

public Workbook(string file, LoadOptions loadOptions)
Parameter Type Description
file String The file name.
loadOptions LoadOptions The load options

See Also


Workbook(Stream, LoadOptions)

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

public Workbook(Stream stream, LoadOptions loadOptions)
Parameter Type Description
stream Stream The stream.
loadOptions LoadOptions The load options

See Also