Thanks for the template file and sharing the sample code.
After an initial test, I found the issue as you mentioned by simply using your code with your template file. I save the file and then open it into MS Excel, but got the error: “Excel found unreadable content…”
Sample code:
Workbook wb = new Workbook(“Test.xlsx”);
Worksheet sheet; intnbSheet = wb.getWorksheets().getCount(); PivotTableCollectionptc; PivotFieldCollectionptPf; for (int i=0; i < nbSheet-2;i++) { sheet = wb.getWorksheets().get(i); ptc = sheet.getPivotTables(); for (int j=0; j < ptc.getCount();j++) { ptc.get(0).refreshData(); //ptc.get(0).calculateData(); … if I add this line, it will cause an exception. } }
wb.save(“out1.xlsx”);
I have logged a ticket with an id “CELLSJAVA-40590” for your issue. We will look into your issue to figure it out soon.
The issues you have found earlier (filed as ) have been fixed in this update. This message was posted using BugNotificationTool from Downloads module by MuzammilKhan
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
Enables storage, such as cookies, related to analytics.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.