I m using Epplus and trying to "repeat all item labels" in tabular type pivot table. I tried lots of things but it looks no way with EPPlus library. I decided to manulplate pivot table xml and i need to add fillDownLabels attribute on pivotTableFields but i m not sure how to do this.
private void ManuplateXml(OfficeOpenXml.Table.PivotTable.ExcelPivotTable pivotTable)
{
var xdPivotTable = pivotTable.PivotTableXml;
var xdPivotFields = xdPivotTable.FirstChild["pivotFields"];
if (xdPivotFields == null)
return;
foreach (XmlElement pField in xdPivotFields)
{
pField.SetAttribute("fillDownLabels", "1");
}
}
I write this method it added the attribute but my pivot table still doesnt repeat item labels. How should xml format be ? How can i use fillDownLabels attribute ?