I was wondering if / how I could find out whether a given .doc(x) file contains OLE Objects (such as an Excel Work Sheet)… and if so, how many.
What I tried is iterating over a Document’s child nodes (Shapes actually) via document.GetChildNodes(NodeType.Shape, true) and then simply check what shape.ShapeTypes are returned.
Strangely, even though I created a blank word document with exactly one Excel worksheet object in it… i get just one Shape of type ‘MinValue’… I’d have suspect to get one with OleObject (or maybe OleControl) … but no. So I assume I must be doing something wrong… but I wonder what?
Does anyone have / know how to iterate over / identify Ole Objects of a document (i.e. over the one in the attached sample .docx with, as mentioned, one Excel Worksheet)?