No shape (OLE object) found in OOXML doc

Hello,

I just integrated the latest dll/license of your aspose.words to support extraction of OLE objects from a ooxml word (2007).
I’m using the classic loop :

Dim doc As Document = New Document(myDocPath)
For Each myShape As Aspose.Words.Drawing.Shape In doc.GetChildNodes(NodeType.Shape, True)
' do something with OLE object
Next

If I provide a word 2003 document with 2 images, it enters the loop.
If I provide a word 2007 document with the same 2 images, it does not enter the loop.
What did I do wrong? Are there special operations to conduct beforehand for ooxml files?

Lionel

Edit: attached the word files.

Hi Lionel,

Thanks for your inquiry. Could you please attach your input Word 2007 document here for testing? I will investigate the issue on my side and provide you more information.

Best Regards,

Done, I attached it to the original post.

Hi Lionel,

Thanks for sharing the documents. The problem occurs because the graphic objects in your Docx document are represented by DrawingML nodes (please note that DrawingML is the main graphics format used in OOXML documents). On the other hand these are represented by Shape objects in your Doc.

Best Regards,

Thank you!