Disable Pivot Table Ribbons

Disable Pivot Table Ribbon using PivotTable.setEnableWizard

Following code demonstrates this feature by accessing a pivot table from a sheet and then calling the setEnableWizard to set this flag false. Sample pivot table file can be downloaded from this link.

// For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Java
// Open the template file containing the pivot table
Workbook wb = new Workbook("pivot_table_test.xlsx");
// Access the pivot table in the first sheet
PivotTable pt = wb.getWorksheets().get(0).getPivotTables().get(0);
// Disable ribbon for this pivot table
pt.setEnableWizard(false);
// Save output file
wb.save("out_java.xlsx");