ピボットテーブルリボンの無効化

Aspose.Cells for Python Excelライブラリを使用してピボットテーブルリボンを無効にする方法

次のコードは、シートからピボットテーブルを取得し、enable_wizardfalseに設定することでこの機能を示しています。サンプルのピボットテーブルファイルは、このリンクからダウンロードできます。

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