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.getRefreshDate() restituisce la data in cui il rapporto della tabella pivot è stato aggiornato l’ultima volta. Allo stesso modo, PivotTable.getRefreshedByWho() 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.

SourcePivotTable.xlsx

Codice di Esempio

const AsposeCells = require("aspose.cells.node");
//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
var workbook = new AsposeCells.Workbook(sourceDir + "sourcePivotTable.xlsx");
//Access first worksheet
var worksheet = workbook.getWorksheets().get(0);
//Access first pivot table inside the worksheet
var pivotTable = worksheet.getPivotTables().get(0);
//Access pivot table refresh by who
console.log("Pivot table refresh by who = " + pivotTable.getRefreshedByWho());
//Access pivot table refresh date
console.log("Pivot table refresh date = " + pivotTable.getRefreshDate());