We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

OLEFormat for Aspose.Words.Node

Hello,

I used to count the number of icons I have that represents embedded files in a Document using the following code

For Each childNode In fileObj.GetChildNodes(Aspose.Words.NodeType.Shape, True)
If childNode.OleFormat IsNot Nothing Then
If childNode.OleFormat.OleIcon Then
Count += 1
End If

                End If

Next

Any alternative way of doing this?

Thanks,

@InnovativeDiscovery,

What problem do you face when using the above code? Please ZIP and upload your input Word document you are getting this problem with here for testing. We will investigate the issue on our end and provide you more information.