الحصول على تاريخ تحديث جدول الدوران ومعلومات من يقوم بالتحديث

كيفية الحصول على تاريخ تحديث جدول البيانات المحوري ومن قام بتحديثه

تعيد PivotTable.refresh_date التاريخ الذي تم فيه تحديث تقرير PivotTable لآخر مرة. بالمثل، تعيد الخاصية PivotTable.refreshed_by_who اسم المستخدم الذي قام بتحديث التقرير في المرة الأخيرة. يوضح المثال التالي هذه الميزة ويمكن تنزيل ملف العينة من الرابط التالي.

SourcePivotTable.xlsx

كود عينة

from aspose.cells import Workbook
# For complete examples and data files, please go to https:# github.com/aspose-cells/Aspose.Cells-for-.NET
# Create workbook object from source excel file
workbook = Workbook(sourceDir + "sourcePivotTable.xlsx")
# Access first worksheet
worksheet = workbook.worksheets[0]
# Access first pivot table inside the worksheet
pivotTable = worksheet.pivot_tables[0]
# Access pivot table refresh by who
print("Pivot table refresh by who = " + pivotTable.refreshed_by_who)
# Access pivot table refresh date
print("Pivot table refresh date = " + str(pivotTable.refresh_date))