File file = new File(newFileName);
Workbook wb = WorkbookFactory.create(new FileInputStream(file));
//刷新excel公式(否则公式不会重新计算)
wb.setForceFormulaRecalculation(true);
wb.write(new FileOutputStream(newFileName));
Excel 类WorkbookFactory
最新推荐文章于 2024-03-17 13:43:49 发布