ms office - Get the ChartSpace from a ChartReference -
i try modify powerpoint slide, contains 2 charts. goal find chart , modify data.
i got graphicframe contains chart, , got relative id of chartspace element want modify. how actucal chartspace element?
public void test() { //// getting slidepart var slidepart = prespart.getpartbyid(relid) slidepart; //// getting shape contains damned chart var graphicframe = getgraphicframefromslide(slidepart, ppchart, ppslide); //// chartreference drawcharts.chartreference child = graphicframe.graphic.graphicdata.getfirstchild<drawcharts.chartreference>(); var chartid = child.id; //// returns extendedsomething, no chart reference :( var chartdata = presdoc.getpartbyid(chartid) ; }
christian, if still looking answer: able find 1 question. think may useful too.
refer post "finding graph part within rich text control openxml sdk".
good luck!
Comments
Post a Comment