Hiding subtotals in pivot table in epplus
问题 I'm using EPPLUS to generate my pivot table (see this SO post). I have the following code //group by fields foreach (string row in _GroupByColumns) { ExcelPivotTableField field = pivotTable.Fields[row]; //field formating field.Sort = eSortType.Ascending; field.Outline = false; field.Compact = false; field.ShowAll = false; field.SubtotalTop = false; //doesn't work, subtotals still there when excel is opened //doesn't work, will result in "unreadable content" error when Excel is opened //field