الحصول على تاريخ تحديث جدول الدوران ومعلومات من يقوم بالتحديث
Contents
[
Hide
]
Aspose.Cells الآن تدعم الحصول على تاريخ التحديث ومعلومات من يقوم بالتحديث من صفحة العمل.
تعيد PivotTable.getRefreshDate التاريخ الذي تم فيه تحديث تقرير PivotTable لآخر مرة. بالمثل، تعيد الخاصية PivotTable.getRefreshByWho اسم المستخدم الذي قام بتحديث التقرير في المرة الأخيرة. يوضح المثال التالي هذه الميزة ويمكن تنزيل ملف العينة من الرابط التالي.
كود عينة
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
// For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Java | |
// Instantiating a Workbook object | |
Workbook workbook = new Workbook(srcDir + "sourcePivotTable.xlsx"); | |
// Access first worksheet | |
Worksheet worksheet = workbook.getWorksheets().get(0); | |
// Access first pivot table inside the worksheet | |
PivotTable pivotTable = worksheet.getPivotTables().get(0); | |
// Access pivot table refresh by who property | |
System.out.println("Pivot table refresh by who = " + pivotTable.getRefreshedByWho()); | |
// Access pivot table refresh date | |
System.out.println("Pivot table refresh date = " + pivotTable.getRefreshDate()); |