[]
Gets or sets the custom text metadata associated with the PivotTable report.
The value is saved with the PivotTable report.
string Tag { get; set; }
Property Tag As String
worksheet.Range["A1:B4"].Value = new object[,] {
{"Region", "Amount"},
{"East", 120},
{"West", 80},
{"East", 90}
};
IPivotCache pivotCache = workbook.PivotCaches.Create(worksheet.Range["A1:B4"]);
IPivotTable pivotTable = worksheet.PivotTables.Add(pivotCache, worksheet.Range["D1"], "SalesPivot");
pivotTable.Tag = "Monthly sales summary";
string tag = pivotTable.Tag;