Hi,
When I refresh the pivot tab and save to the output file. My output file is getting corrupted. I am writing in Java as below :
Workbook wb = new Workbook(“template.xlsx”);
wb.calculateFormula();
PivotTable pt = wb.getWorksheets().get(1).getPivotTables().get(0);
pt.refreshData();
pt.calculateData();
wb.save(“output.xlsx”);
Attached is the template and output files .
Thanks,
Sowmya