This functions set the name of the sheet.
1 excel.Workbook.setSheetName
<excel.Workbook.setSheetName
index='index'
name='name'
>
<wb /> +
</excel.Workbook.setSheetName>
Attributes | |||||
---|---|---|---|---|---|
Name | Type | Required | Default | Description | |
Aindex | integer | Index of the sheet which you want to set the attribute. | |||
Aname | string | Visible/Hidden. |
Arguments | |||||
---|---|---|---|---|---|
Name | Type | Required | Unique | Nullable | Description |
Ewb | Workbook | Workbook which contains the sheet. |
Example
Set the name of the sheet1.
Copy
<xsql-script> <body> <set name='wb'> <excel.Workbook /> </set> <excel.Workbook.createSheet name='sheet1'> <wb /> </excel.Workbook.createSheet> <println> <excel.Workbook.getSheetName index='0'> <wb /> </excel.Workbook.getSheetName> </println> <excel.Workbook.setSheetName index='0' name='new_sheet1'> <wb /> </excel.Workbook.setSheetName> <println> <excel.Workbook.getSheetName index='0'> <wb /> </excel.Workbook.getSheetName> </println> </body> </xsql-script>