Convert Word.InlineShape to Excel.Workbook c# -
there excel.workbooks in word document.
i can word.inline shapes need convert them excel.application
word.inlineshapes shapes=wordapp.activedocument.inlineshapes; those shapes created via
wordapp.selection.inlineshapes.addoleobject("msgraph.chart.8", excellapp.activeworkbook.name, false, false, type.missing, type.missing, type.missing, type.missing); how can convert them excel.workbook again?
also tried ;
word.inlineshapes shapes = wordapp.activedocument.inlineshapes;  foreach(word.shape shape in shapes) {      word.chart chart = shape.chart; } but throws unimplemented exception.
try this:
word.oleformat ole = shape.oleformat; ole.activate(); excel.workbook book = (excel.workbook)ole.object; 
Comments
Post a Comment