[]
Gets or sets a value indicating whether the PivotTable cache is automatically updated each time the workbook is opened.
The default value is false.
bool RefreshOnFileOpen { get; set; }
Property RefreshOnFileOpen As Boolean
worksheet.Range["A1:B4"].Value = new object[,] {
{"Category", "Amount"},
{"Fruit", 100},
{"Vegetable", 200},
{"Fruit", 150}
};
IPivotCache pivotCache = workbook.PivotCaches.Create(worksheet.Range["A1:B4"]);
pivotCache.RefreshOnFileOpen = true;
bool refreshOnFileOpen = pivotCache.RefreshOnFileOpen;