I am trying to use Syncfusion.Presentation library in order to refresh a chart in Microsoft Powerpoint presentation (linked with Microsoft Excel) whenever data changes in Microsoft Excel. The code runs fins and produce the output file but doesn't refresh the chart. Instead, in the output file, it shows the chart empty. After initial analysis, i found that, output file created by code doesn't identify the range of data correctly. That's why, chart is being shown empty e.g. if in original file data range for chart is A12:C22, in the output file, this range is not being identified correctly and chart is shown as an empty chart.
Code is given below
IPresentation pptxDoc = Presentation.Open(@"Path of original presentation");
ISlide slide = pptxDoc.Slides;
//Gets the chart in slide
IPresentationChart chart = slide.Shapes as IPresentationChart;
pptxDoc.Save(@"path of output file.");
//Closes the Presentation