access PowerPoint chart c#
- by babar11
Hi,
I have a problem in a c# projet. In fact, i did a PowerPoint-add-in and i want to generate Charts on Slides.
I create 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 create on the slide but i can't access to the data to update or insert.
I have try with the Datasheet like below :
//DataSheet test = objChart.Application.DataSheet;
//test.Cells.Clear()
This delete the data of the chart but i dont find a solution to insert values in the chart data after.
Best Regards,
Chomel Jeremy