I have a powerpoint template with a simple bar chart with (say) 15 rows
Depending of the results of a data lookup occurring in the c# application, using NetOffice Interop I may need to reduce the number of rows that are being displayed
I had hoped that SetSourceData would allow me to override the current selection but
Shape sh = slide.Shapes['mychart'];
NetOffice.PowerPointApi.Chart cx = sh.Chart;
cx.SetSourceData("='Sheet1'!$A$1:$B$5");
seems to be ignored, and the source range remains the full underlying data
(not critical to keep the underlying data, so if there's a way to solve the problem by truncating rows happy to do that)