Ottenere la data di aggiornamento della tabella pivot e informazioni sull aggiornamento da parte di chi
PivotTable.getRefreshDate restituisce la data in cui il rapporto della tabella pivot è stato aggiornato l’ultima volta. Allo stesso modo, PivotTable.getRefreshByWho restituisce il nome dell’utente che ha aggiornato il rapporto l’ultima volta. L’esempio seguente illustra questa funzionalità e il file di esempio può essere scaricato dal seguente link.
Codice di Esempio
// 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()); |