الحصول على تاريخ تحديث جدول الدوران ومعلومات من يقوم بالتحديث
Contents
[
Hide
]
تدعم الآن Aspose.Cells لـ Python via .NET جلب تاريخ التحديث ومعلومات من قام بتحديثه من مصنف العمل.
كيفية الحصول على تاريخ تحديث جدول البيانات المحوري ومن قام بتحديثه
تعيد PivotTable.refresh_date التاريخ الذي تم فيه تحديث تقرير PivotTable لآخر مرة. بالمثل، تعيد الخاصية PivotTable.refreshed_by_who اسم المستخدم الذي قام بتحديث التقرير في المرة الأخيرة. يوضح المثال التالي هذه الميزة ويمكن تنزيل ملف العينة من الرابط التالي.
كود عينة
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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)) |