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
- class Workbook
- namespace Aspose.Cells
- assembly Aspose.Cells
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 with various file format type.
[C#]
Workbook workbook = new Workbook(FileFormatType.Xlsx);
[Visual Basic]
Dim workbook as Workbook = new Workbook(FileFormatType.Xlsx)
See Also
- enum FileFormatType
- class Workbook
- namespace Aspose.Cells
- assembly Aspose.Cells
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
- class Workbook
- namespace Aspose.Cells
- assembly Aspose.Cells
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
- class Workbook
- namespace Aspose.Cells
- assembly Aspose.Cells
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
- class LoadOptions
- class Workbook
- namespace Aspose.Cells
- assembly Aspose.Cells
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
- class LoadOptions
- class Workbook
- namespace Aspose.Cells
- assembly Aspose.Cells