تعطيل شريط جدول الدوران

كيفية تعطيل شريط الجدول المحوري باستخدام مكتبة Aspose.Cells لبيثون إكسل

يوضح الكود التالي هذه الميزة عن طريق الوصول إلى جدول دوران من ورقة ومن ثم ضبط enable_wizard إلى false. يمكن تنزيل ملف جدول الدوران المثالي من هذا الرابط.

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