Hi
In my attached sample document is having paragraph, Image,paragraph,Table,Paragraph. I am not able to read these elements in sequence as in my source document.Bellow is my code,
Dim nodecollection As NodeCollection = docPage.GetChildNodes(NodeType.Any, True)
For i As Integer = 0 To nodecollection.Count - 1
Dim child As Node = nodecollection(i)
If child.NodeType.Equals(NodeType.Paragraph) Then
Console.WriteLine(“Paragraph”)
ElseIf child.NodeType.Equals(NodeType.Shape) Then
Console.WriteLine(“Shape”)
ElseIf child.NodeType.Equals(NodeType.Table) Then
Console.WriteLine(“Table”)
ElseIf child.NodeType.Equals(NodeType.Run) Then
Console.WriteLine(“Run”)
End If
Next i
nodecollection.Count is 72 instead of that how to get only presented elements count, no of Paragraphs count also not coming as in my source document.
Thanks
Anil kasa