H
Hooyoo
I use InlineShapes to insert a chart in a word document.
//Insert a chart.
object chartLocation = wordApp.Selection.Range;
wordDoc.InlineShapes.AddChart(
Microsoft.Office.Core.XlChartType.xlLineStacked,
ref chartLocation);
InlineShape shape = wordDoc.InlineShapes[1];
Next step, I want to fill data to the chart, but I don't know how to
manipulate InlineShape. Does anybody can help me ? Thanks a lot.
Another question is how to avoid Excel popping up when insert the
chart. When I insert a chart, an Excel will pop up to let me fill the
data, but I want to hide it, and fill chart with coding. Please help
me. Thanks again.
//Insert a chart.
object chartLocation = wordApp.Selection.Range;
wordDoc.InlineShapes.AddChart(
Microsoft.Office.Core.XlChartType.xlLineStacked,
ref chartLocation);
InlineShape shape = wordDoc.InlineShapes[1];
Next step, I want to fill data to the chart, but I don't know how to
manipulate InlineShape. Does anybody can help me ? Thanks a lot.
Another question is how to avoid Excel popping up when insert the
chart. When I insert a chart, an Excel will pop up to let me fill the
data, but I want to hide it, and fill chart with coding. Please help
me. Thanks again.