-
-
Notifications
You must be signed in to change notification settings - Fork 36
setReturnCachedFormulaValues
Julian Halliwell edited this page Mar 6, 2024
·
1 revision
For the current spreadsheet library instance, allows you to control whether to return cached or freshly calculated formula values. Workbooks generally cache values that have already been calculated.
setReturnCachedFormulaValues( state )
-
state
boolean
The library default is true
which is best for performance and can help avoid exceptions in cases where POI is unable to run a specific formula in your workbook.
spreadsheet = New spreadsheet();
spreadsheet.setReturnCachedFormulaValues( false ); // always re-calculate returned formula cell values