Ottenere la data di aggiornamento della tabella pivot e informazioni sull aggiornamento da parte di chi
PivotTable.RefreshDate restituisce la data in cui il rapporto della tabella pivot è stato aggiornato l’ultima volta. Allo stesso modo, PivotTable.RefreshByWho 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-.NET | |
// Create workbook object from source excel file | |
Workbook workbook = new Workbook(sourceDir + "sourcePivotTable.xlsx"); | |
// Access first worksheet | |
Worksheet worksheet = workbook.Worksheets[0]; | |
// Access first pivot table inside the worksheet | |
PivotTable pivotTable = worksheet.PivotTables[0]; | |
// Access pivot table refresh by who | |
Console.WriteLine("Pivot table refresh by who = " + pivotTable.RefreshedByWho); | |
// Access pivot table refresh date | |
Console.WriteLine("Pivot table refresh date = " + pivotTable.RefreshDate); |