Quantcast
Channel: Word for Developers forum
Viewing all articles
Browse latest Browse all 4350

how can I operate Charts in word ?

$
0
0

At first I created a Word document like that :

Then I use the Microsoft.Office.Interop.Word API to change the data of the Charts dynamicaly like that:

......

Microsoft.Office.Interop.Word.Chart sh = (Chart)wordapp.Selection.InlineShapes[1].OLEFormat.Object;

...

for(...){

       sh.Application.DataSheet.Cells[x,x] = ......;

}

Questions:

1.I think this method is too verbose.Can I do this in any other way?

2.There was a strange problem:I can operate The Microsoft Graph Chart .But I don't know how to operate the other type of charts.How many types of charts in Word? And how Can I change the data of them?

Thank you very much.



赵召


Viewing all articles
Browse latest Browse all 4350

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>