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.
赵召