Returns a sheet of the excel referenced by the index.
1 excel.Workbook.getSheetAt
<excel.Workbook.getSheetAt index='index'>
<wb /> +
</excel.Workbook.getSheetAt>
Attributes | |||||
---|---|---|---|---|---|
Name | Type | Required | Default | Description | |
Aindex | integer | Index of the wanted sheet. |
Arguments | |||||
---|---|---|---|---|---|
Name | Type | Required | Unique | Nullable | Description |
Ewb | Workbook | Work from which to extract the sheet. |
Returns | |
---|---|
Type | Description |
Sheet |
Example
Get the images of an excel book.
Copy
<xsql-script> <body> <set name='wb'> <excel.Workbook /> </set> <excel.Workbook.createSheet name='sheet1'> <wb /> </excel.Workbook.createSheet> <excel.Workbook.createSheet name='sheet2'> <wb /> </excel.Workbook.createSheet> <set name ='m_selected_sheet'> <excel.Workbook.getSheetAt index='0'> <wb /> </excel.Workbook.getSheetAt> </set> <println> <m_selected_sheet/> </println> </body> </xsql-script>