Get the font color of the cell.
1 excel.Cell.getFillForegroundColor
<excel.Cell.getFillForegroundColor>
<wb /> +
<cl /> +
</excel.Cell.getFillForegroundColor>
Arguments | |||||
---|---|---|---|---|---|
Name | Type | Required | Unique | Nullable | Description |
Ewb | Workbook | Worksheet which contains the cell. | |||
Ecl | Cell | Cell. |
Returns | |
---|---|
Type | Description |
string | The value of the font color of the cell. |
Example
A new document is created and the color of any cell is requested. The result obatined should be #000000.
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/> <println> <excel.Cell.getFillForegroundColor> <wb/> <cell_r2c2/> </excel.Cell.getFillForegroundColor> </println> </excel.Cell.setCellValue> <excel.Workbook.write> <wb/> <file name="test.xls"/> </excel.Workbook.write> </body> </xsql-script>