[]
Gets or sets the data source for the PivotTable report.
IRange SourceData { get; set; }
Property SourceData As IRange
worksheet.Range["A1:C4"].Value = new object[,] {
{"Product", "Category", "Amount"},
{"Apple", "Fruit", 100},
{"Pear", "Fruit", 200},
{"Carrot", "Vegetable", 150}
};
IPivotCache pivotCache = workbook.PivotCaches.Create(worksheet.Range["A1:C4"]);
IRange sourceData = pivotCache.SourceData;