This project has moved and is read-only. For the latest updates, please go here.

Refresh Pivot Chart

Jul 29, 2010 at 8:08 PM



First of all - great work! This is a very useful tool and I appreciate the effort.

I have used EPPlus to generate xlsx files based  on a template containing pivot charts. I populate a Sheet1 with dynamic data which is supposed to be used to display pivot charts in separate tabs. The data gets populated but the pivot charts do not reflect the new data - I have to manually right-click on any one of the charts and select "Refresh" which refreshes all of the charts. Any way to do this refresh from code?




Aug 1, 2010 at 11:04 AM


There is no support for Pivot charts/tables in the current version, so I have not tried it.

I plan to add support for it in a future version, if it's not too complicated, but i'm not sure when that will happend.


Aug 2, 2010 at 3:40 PM
Jan, I found a fix for this. Right click on the pivot table and click PivotTable Options. Select the Data tab and check the option to refresh on opening the workbook. Save the template. Regards, Kid
May 6, 2011 at 1:33 PM

Hi Jan,

i am looking for a support to create a pivot chart using EPPlus. Could you help me out with a sample project or so...  Few topics that are available in excel object i am not able to see in EPPlus. I guess i am not lookin in right way.. Your help is appreciated.

need what object to be used as replacement for 'pivotcaches' in excel.

Thanks in advance..


May 9, 2011 at 6:23 PM


Version 2.8 don't support pivottable, but the next version will. Download the latest source (trunk) and check out sample 12 how to work with pivottables.

Next version is only a few weeks away, so please report any problem you find.


May 11, 2011 at 11:56 AM

Hi Jan,

Thanks for your reply... I have seen the code in sample 12 and i am eagerly waiting for the new dll version to be released. With the current dll i am not able to use the below namespaces


How can i subscribe for the latest version release?

Chandrasekhar S
May 12, 2011 at 6:52 PM

If everything goes well with the testing version 2.9 will be released next week or the week after that.


Jun 23, 2011 at 12:09 PM

Hi Jan,

Congrats for the release of new version. I have tried working on this dll and was not able to find few details. Help me out how to solve this. I need to create a pivot table from a set of data that is available in another work sheet from same xlsx file which i am working. Could you help me with any sample code if you have any. 'Loadfromtext' is not working fine for me.