Disabilita le barre delle tabelle pivot

Disabilitare la barra degli strumenti della tabella pivot utilizzando PivotTable.setEnableWizard

Il seguente codice dimostra questa funzionalità accedendo a una tabella pivot da un foglio e quindi chiamando il setEnableWizard per impostare questo flag false. Il file di esempio della tabella pivot può essere scaricato da questo 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");