I have a problem in a C# project. In fact, I created a PowerPoint add-in and I want to generate charts on slides.
I created a slide with:
using PowerPoint = Microsoft.Office.Interop.PowerPoint;
using Microsoft.Office.Interop.Graph;
Microsoft.Office.Interop.Graph.Chart objChart;
objChart = (Microsoft.Office.Interop.Graph.Chart)objShape.OLEFormat.Object;`
The chart is created on the slide but I can't access the data to update or insert.
I have tried using a Datasheet like below:
//DataSheet test = objChart.Application.DataSheet;
//test.Cells.Clear()
This deleted the data of the chart but I couldn't figure out how to insert values back into the chart data afterwards.