access PowerPoint chart c#
Posted
by babar11
on Stack Overflow
See other posts from Stack Overflow
or by babar11
Published on 2010-06-09T08:21:58Z
Indexed on
2010/06/15
5:12 UTC
Read the original article
Hit count: 225
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
© Stack Overflow or respective owner