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

Popular posts from this blog

Qt4: how to send QString inside a struct via QSharedMemory -

node.js - NodeJS remote terminal to Dropbear OpenWRT-Server -

python - jinja2: TemplateSyntaxError: expected token ',', got 'string' -