Hi,
Thanks for your feedback.
I tested your xlsx file with Spire.XLS(12.12.3), using the following code,
- Code: Select all
Workbook workbook = new Workbook();
workbook.ConverterSetting.ClearCacheOnConverted= true;
workbook.LoadFromFile("TEST tcd & charts MODELARIO2.xlsx");
var pt = workbook.Worksheets["TEST TCD"].PivotTables;
foreach (Spire.Xls.Core.Spreadsheet.PivotTables.XlsPivotTable item in pt)
{
item.Cache.IsRefreshOnLoad = true;
item.CalculateData();
}
var tables = workbook.Worksheets["TEST TCD"].Charts;
foreach (Chart chart in tables)
{
chart.RefreshChart();
}
workbook.SaveToFile("output.pdf", FileFormat.PDF);
the PivotTables and charts are refreshed, but I found a mistake, the labels and shapes are not aligned, see attached.
- Picture1.png (19.97 KiB) Viewed 2504 times
I have logged this issue into our bug tracking system with the ticket number SPIREXLS-4402, Our developers will investigate and fix it, sorry for the inconvenience caused. Once the issue is fixed, I will inform you in time.
Sincerely,
Triste
E-iceblue support team