Hi,
Hi,
Thanks for your posting and using Aspose.Cells.
We have tested your issue with your sample excel file and sample code using the latest version: Aspose.Cells for Java v8.8.2.9
and found it is working fine. Please try the latest version and let us know your feedback.
Please also try adding the following line after refresh and calculate data i.e pt.setRefreshDataOnOpeningFile(true). It should also fix your issue.
Java
pt.refreshData();
pt.calculateRange();
pt.calculateData();
pt.setRefreshDataOnOpeningFile(true)
Hi,
Hi Stefanie,
Hi,
Thanks for using Aspose.Cells.
We can’t support refreshing the PivotTable with Percentage data formats
for now. We set the “RefreshDataOnOpeningFile” flag to true and let
MS-Excel refresh the PivotTable automatically when opening the result
file. We will support it later.