Hi,
I created a simple document with Pivot Table in *.xlsx and *.xlsb format. It’s the same document converted from *.xlsx to *.xlsb by Excel, but Aspose.Cells returns different states for ‘ShowPivotStyleColumnHeader’ and ‘ShowPivotStyleRowHeader’ fields.
*.xlsx
ShowPivotStyleColumnHeader = true
ShowPivotStyleRowHeader = true
*.xlsb
ShowPivotStyleColumnHeader = false
ShowPivotStyleRowHeader = false
Workbook wb = new Workbook(fName);
foreach(Worksheet ws in wb.Worksheets)
{
foreach(PivotTable pt in ws.PivotTables)
{
try { pt.RefreshData(); }
catch { }
try { pt.CalculateData(); }
catch { }
try { pt.CalculateRange(); }
catch { }
// my inner printing method
printLine(“ShowPivotStyleColumnHeader”, pt.ShowPivotStyleColumnHeader.ToString(), SPACE2);
printLine(“ShowPivotStyleRowHeader”, pt.ShowPivotStyleRowHeader.ToString(), SPACE2);
}
}
I use Excel 2010 and Aspose.Cells v7.3.5.1.
Thanks,
Alex Shloma