Place a style in a cell in CSS format.
1 excel.Cell.setCellStyle
<excel.Cell.setCellStyle css='css'>
<wb /> +
<cl /> +
</excel.Cell.setCellStyle>
Attributes | |||||
---|---|---|---|---|---|
Name | Type | Required | Default | Description | |
Acss | string |
Arguments | |||||
---|---|---|---|---|---|
Name | Type | Required | Unique | Nullable | Description |
Ewb | Workbook | Worksheet which contains the cell. | |||
Ecl | Cell | Cell on which you want to place the style. |
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> <set name="cell_r2c5"> <excel.Sheet.createCell row="15" col="3"> <sheet_1/> </excel.Sheet.createCell> </set> <excel.Cell.setCellStyle css="font-size:20;"> <wb/> <excel.Cell.setCellValue> <cell_r2c5/> <string>FONT SIZE: 20</string> </excel.Cell.setCellValue> </excel.Cell.setCellStyle> <excel.Workbook.write> <wb/> <file name="test.xls" type="absolute"/> </excel.Workbook.write> </body> </xsql-script>