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 state for the sorting in row fields.
RowField - ‘Product’
*.xlsx
IsAscendShow = true
IsAscendSort = false
IsAutoShow = false
IsAutoSort = true
*.xlsb
IsAscendShow = false
IsAscendSort = true
IsAutoShow = true
IsAutoSort = false
PivotFieldCollection pfc = pt.RowFields;
for (int i = 0; i < pfc.Count; i++)
{
PivotField pf = pfc[i];
// my inner printing method
printLine(“IsAscendShow”, pf.IsAscendShow.ToString(), SPACE4);
printLine(“IsAscendSort”, pf.IsAscendSort.ToString(), SPACE4);
printLine(“IsAutoShow”, pf.IsAutoShow.ToString(), SPACE4);
printLine(“IsAutoSort”, pf.IsAutoSort.ToString(), SPACE4);
}
I use Excel 2010 and Aspose.Cells v7.3.5.1.
Thank you,
Alex Shloma