Document Solutions for Excel, Java Edition | Document Solutions
Features / Workbook / Create Workbook
In This Topic
    Create Workbook
    In This Topic

    You can create a new instance of a workbook using the Workbook class.

    A workbook may contain one or more worksheets that are stored within the Worksheets collection. By default, a workbook contains one empty worksheet with the default name Sheet1, which is created as soon as a new instance of the Workbook class is created.

    Refer to the following example code to create a workbook using DsExcel Java.

    Copy Code
    Workbook workbook = new Workbook();

    In order to add more worksheets to your workbook, refer to Work with Worksheets in this documentation.

    See Also