Place a String value in the cell.
1 excel.Cell.setCellValue
<excel.Cell.setCellValue>
<cl /> +
<dt /> +
</excel.Cell.setCellValue>
Arguments | |||||
---|---|---|---|---|---|
Name | Type | Required | Unique | Nullable | Description |
Ecl | Cell | Cell. | |||
Edt | data | Value to asign. |
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="15" col="2"> <sheet_1/> </excel.Sheet.createCell> </set> <!-- cell with string --> <excel.Cell.setCellValue> <cell_r2c2/> <string>TEXTO</string> </excel.Cell.setCellValue> <excel.Workbook.write> <wb/> <file name="test.xls" type="absolute"/> </excel.Workbook.write> </body> </xsql-script>