Ottenere la data di aggiornamento della tabella pivot e informazioni sull aggiornamento da parte di chi
Come ottenere la data di aggiornamento della tabella pivot e informazioni sull’aggiornamento da parte di chi
PivotTable.refresh_date restituisce la data in cui il rapporto della tabella pivot è stato aggiornato l’ultima volta. Allo stesso modo, PivotTable.refreshed_by_who 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
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)) |