Have been trying hard to to use Open Xml 2.7.1 to get that work, but the generated Excel package just keep failing. Has anyone tried that and any code sample we can browse and learn?
We started with an Excel package that has worksheets and data connections created already, and then simply add a new empty pivot table thru Open Xml. We also manually created an empty PivotTable using the same connection thru Excel GUI and used it as the benchmark, and tried to have the same content (underlying Xml files) as much as we can.
I know Eric had some sample of creating PivotTable, but seems not based on a data connection to a OLAP Cube, and also in older Open Xml version