Function which is used to create a sheet within an excel file.
1 excel.Workbook.createSheet
<excel.Workbook.createSheet
name='name'
selected='selected'
>
<wb /> +
</excel.Workbook.createSheet>
Attributes | |||||
---|---|---|---|---|---|
Name | Type | Required | Default | Description | |
Aname | string | Name of the sheet which is being created. | |||
Aselected | boolean |
Arguments | |||||
---|---|---|---|---|---|
Name | Type | Required | Unique | Nullable | Description |
Ewb | Workbook | Workbook where insert the sheet which has been created. |
Returns | |
---|---|
Type | Description |
Sheet | Sheet which has been created. |
Example
Create an excel file, with a sheet called sheet1.
Copy
<xsql-script> <body> <set name='wb'> <excel.Workbook /> </set> <excel.Workbook.createSheet name='sheet1'> <wb /> </excel.Workbook.createSheet> <excel.Workbook.write> <wb/> <file name="test.xls" type="absolute"/> </excel.Workbook.write> </body> </xsql-script>