Returns the reference of a cell. The argument is required only if the attributes are not used and vice versa.
1 excel.Cell.getCellReference
<excel.Cell.getCellReference
col='col'
row='row'
>
<cl /> *
<cl /> *
</excel.Cell.getCellReference>
Attributes | |||||
---|---|---|---|---|---|
Name | Type | Required | Default | Description | |
Acol | integer | Column. | |||
Arow | integer | Row. |
Arguments | |||||
---|---|---|---|---|---|
Name | Type | Required | Unique | Nullable | Description |
Ecl | Cell | Cell. | |||
Ecl | Cell | Cell. |
Returns | |
---|---|
Type | Description |
string | Position of the cell. |
Remarks
There is two modes of use of this function: The attributes can be passed to him specifying the column and the row or the cell is passed directly to him.
Example
Copy
<xsql-script> <body> <set name='wb'> <excel.Workbook /> </set> <set name="sheet_1"> <excel.Workbook.createSheet name="Hoja 1"> <wb/> </excel.Workbook.createSheet> </set> <set name="cell_r2c2"> <excel.Sheet.createCell row="3" col="1"> <sheet_1/> </excel.Sheet.createCell> </set> <excel.Cell.setCellValue> <cell_r2c2/> <excel.Cell.getCellReference row='3' col='1'> </excel.Cell.getCellReference> </excel.Cell.setCellValue> <excel.Workbook.write> <wb/> <file name="test.xls" type="absolute"/> </excel.Workbook.write> </body> </xsql-script>