How to get rid of “Save changes?” prompt on xlsx-files created with Apache POI XSSF

后端 未结 2 1876
夕颜
夕颜 2021-01-14 09:10

After opening and immediately closing an xlsx-file, created with Apache POI XSSF, I get prompted to save unsaved changes. As far as i can tell, this is happening because I a

2条回答
  •  失恋的感觉
    2021-01-14 09:43

    Even I was facing the same issue but after adding the below line, the issue has been resolved.

    wb.getCreationHelper().createFormulaEvaluator().evaluateAll();
    

提交回复
热议问题