简体   繁体   中英

apache poi how to refresh the entire workbook

My workbook contains more than 10 sheets, all even sheets are formulated which takes the data from the odd numbered sheet.

I'm writing data only to odd numbered sheet (1 3 5 7.....) at the end, I want to refresh entire workbook automatically so that they all, even numbered (0,2,4,6...) sheets get the data for the next page.

I have tried HSSFFormulaEvaluator.EvaluateAllFormulaCells (workbook) but its not working.

How to refresh the entire workbook, so that the all formulated cells are evaluated at once?

Are you able to use the *.xlsx Format instead and work with this code?

XSSFFormulaEvaluator.evaluateAllFormulaCells(workbook);

This just solved a similar problem that I was having.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM