Hello,
I Created a pivot table with filters but I want to hide them from the worksheet and still applying data filtering.
pivotTable.AddFieldToArea(PivotFieldType.Page, “LockedPtf”);
pivotTable.AddFieldToArea(PivotFieldType.Page, “ExcludedOstType”);
pivotTable.AddFieldToArea(PivotFieldType.Page, “DiffExDate”);
pivotTable.AddFieldToArea(PivotFieldType.Page, “Message”);
I tried to delete the range which correspond to the filters but still see them.
pivotWorksheet.Cells.ClearRange(1, 1, 5, 2);
pivotWorksheet.Cells.ClearContents(1, 1, 5, 2);
pivotWorksheet.Cells.DeleteRange(1, 1, 5, 2, ShiftType.None);
Thanks.