Hi,
Hi,
Please download the latest version: Aspose.Cells
for .NET v6.0.0.4
Once you download it, then use the following code to remove pivot fields.
C#<span style=“font-size: 10pt; font-family: “Microsoft YaHei”,“sans-serif”;”>
pivotTable.RemoveField(PivotFieldType.Row, “a”);
pivotTable.CalculateData();
In case, you could not resolve the issue, then provide me your sample input xls/xlsx file containing your pivot table and let me know the field you want to remove. We will investigate it and provide you a sample code.