Returns a reference cell from the sheet, if there is no cell with that reference, it will create it and return it.
1 excel.Sheet.getCellByReference
<excel.Sheet.getCellByReference ref='ref'>
<sh /> +
</excel.Sheet.getCellByReference>
Attributes | |||||
---|---|---|---|---|---|
Name | Type | Required | Default | Description | |
Aref | integer | Reference with which the cell is determined. |
Arguments | |||||
---|---|---|---|---|---|
Name | Type | Required | Unique | Nullable | Description |
Esh | Sheet |
Returns | |
---|---|
Type | Description |
Cell | Returns the cell with the choosen reference. |
Example
Copy
<xsql-script> <body> <set name='wb'> <excel.Workbook /> </set> <set name="sheet_1"> <excel.Workbook.createSheet name="Sheet 1"> <wb/> </excel.Workbook.createSheet> </set> <excel.Sheet.getCellByReference ref='A1'> <sheet_1/> </excel.Sheet.getCellByReference> <excel.Workbook.write> <wb/> <file name="test.xls" type="absolute"/> </excel.Workbook.write> </body> </xsql-script>