Place an equation in a cell.
1 excel.Cell.setCellFormula
<excel.Cell.setCellFormula>
<cl /> +
<dt /> +
</excel.Cell.setCellFormula>
Arguments | |||||
---|---|---|---|---|---|
Name | Type | Required | Unique | Nullable | Description |
Ecl | Cell | The cell where the comment is created. | |||
Edt | data | The equation in question. |
Remarks
The equations should be written in english, for example, to make a sum of cell is SUM and NO SUMA.
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.Cell.setCellFormula> <excel.Sheet.createCell row="4" col="1"> <sheet_1/> </excel.Sheet.createCell> <string>5*3</string> </excel.Cell.setCellFormula> <excel.Workbook.write> <wb/> <file name="test.xls" type="absolute"/> </excel.Workbook.write> </body> </xsql-script>