Deshabilitar cintas de tabla dinámica

Deshabilite la cinta de opciones de la tabla dinámica mediante PivotTable.setEnableWizard

El siguiente código demuestra esta característica accediendo a una tabla dinámica desde una hoja y luego llamando alsetEnableWizard para establecer esta banderafalso . El archivo de tabla dinámica de muestra se puede descargar desde esteEnlace.

// 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");