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

تعطيل شريط الأدوات لجداول الدوران باستخدام PivotTable.EnableWizard

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

// 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
Workbook wb = new Workbook("pivot_table_test.xlsx");
// Access the pivot table in the first sheet
PivotTable pt = wb.Worksheets[0].PivotTables[0];
// Disable ribbon for this pivot table
pt.EnableWizard = false;
// Save output file
wb.Save("out.xlsx");