Evaluate all the formulas of a worksheet and returns another worksheet with calculated cells.
1 excel.Workbook.evaluate
<excel.Workbook.evaluate>
<wb /> +
</excel.Workbook.evaluate>
Arguments | |||||
---|---|---|---|---|---|
Name | Type | Required | Unique | Nullable | Description |
Ewb | Workbook | Worksheet to evaluate. |
Returns | |
---|---|
Type | Description |
Workbook | Returns a worksheet with the result of evaluating the formulas in the cells which contained formulas. |
Example
Copy
<xsql-script name='sample_excel_Workbook_evaluate'> <body> <set name='wb_eval'> <excel.Workbook.evaluate> <excel.Workbook> <file name='c:\jas\workbook1.xls' type='absolute' /> </excel.Workbook> </excel.Workbook.evaluate> </set> <excel.Workbook.write> <wb_eval /> <file name='c:\jas\workbook1_eval.xls' type='absolute' /> </excel.Workbook.write> <set name='numsheets'> <sub> <excel.Workbook.getNumberOfSheets> <wb_eval /> </excel.Workbook.getNumberOfSheets> 1 </sub> </set> <for name='idx' start='0' end='#numsheets'> <do> <println> <excel.Sheet.toHTML> <excel.Workbook.getSheetAt index='#idx'> <wb_eval /> </excel.Workbook.getSheetAt> </excel.Sheet.toHTML> </println> <println></println> </do> </for> </body> </xsql-script>