Free Support Forum -

Update pivot table

Hi Aspose Team,

I've a workbook with an already defined pivot table.

I need to change some data of the pivot table data source, then recalculate the pivot table, and save the updated pivot table to Aspose.Pdf format.

How can I do this? I've followed the documentation but the pivot table seems to never be updated.

code :

Workbook wbk = new Workbook();


//put data



//update pivot table

Range range = wbk.Worksheets[0].Cells.CreateRange(0, 0, 5, 5);

range.Name = "data";



Well, I 'm afraid the feature is not available, you cannot dynamically manipulate a pivot table using Aspose.Cells APIs. Actually Aspose.Cells does not process the pivot data rather only sets the data. Aspose.Cells forces MS Excel to refesh and process the pivot table when the output file is loaded with MS Excel.

Thank you.