In DsExcel, you can create a new instance of a workbook by using the constructor of Workbook class.
A workbook may contain one or more worksheets that are kept in the Worksheets collection. By default, a workbook contains one empty worksheet with the default name Sheet1, which is created as soon as the user generates a new instance of the Workbook class.
Refer to the following example code to see how you can create a workbook using DsExcel.
C# |
Copy Code |
---|---|
//Initialize the WorkBook Workbook workbook = new Workbook(); |
In order to add more worksheets to your workbook, refer to Work with Worksheets in this documentation.