Disabilita le barre delle tabelle pivot

Come disabilitare la barra delle tabelle pivot utilizzando Aspose.Cells per la libreria Excel Python

Il seguente codice dimostra questa funzionalità accedendo a una tabella pivot da un foglio e impostando enable_wizard su false. Il file di esempio della tabella pivot può essere scaricato da questo link.

from aspose.cells import Workbook
# For complete examples and data files, please go to https:# github.com/aspose-cells/Aspose.Cells-for-.NET
# Open the template file containing the pivot table
wb = Workbook("pivot_table_test.xlsx")
# Access the pivot table in the first sheet
pt = wb.worksheets[0].pivot_tables[0]
# Disable ribbon for this pivot table
pt.enable_wizard = False
# Save output file
wb.save("out.xlsx")