Returns a printing area referenced by the index.
1 excel.Workbook.getPrintArea
<excel.Workbook.getPrintArea index='index'>
<wb /> +
</excel.Workbook.getPrintArea>
Attributes | |||||
---|---|---|---|---|---|
Name | Type | Required | Default | Description | |
Aindex | integer | Index of the worksheet from which you want to get the print area. |
Arguments | |||||
---|---|---|---|---|---|
Name | Type | Required | Unique | Nullable | Description |
Ewb | Workbook | Workbook. |
Returns | |
---|---|
Type | Description |
string | Print area. |
Example
Set as a print area from the cell A1 to the Z99, then retrieve this same information.
Copy
<xsql-script> <body> <set name='wb'> <excel.Workbook /> </set> <excel.Workbook.createSheet name="Sheet 1"> <wb/> </excel.Workbook.createSheet> <excel.Workbook.setPrintArea index='0' reference='$A$0:$Z$99'> <wb /> </excel.Workbook.setPrintArea> <println> <excel.Workbook.getPrintArea index='0'> <wb /> </excel.Workbook.getPrintArea> </println> </body> </xsql-script>