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

Free Support Forum - aspose.com

How to skip table reading in paragraphs reading aspose words in vb.net

Hi


I don’t want to read table formatted data reading in paragraphs reading. how can i do this. Below is the code i am using in reading paragraphs.


’'Text reading start
Dim paraText As String
Dim paragraphs As NodeCollection = docPage.GetChildNodes(NodeType.Paragraph, True)
For Each Paragraph As Aspose.Words.Paragraph In paragraphs

paraText = Paragraph.GetText().ToString()
paraText = paraText.Trim()

If paraText <> String.Empty And paraText <> “” And paraText <> “PAGE” Then
CreatePageObject(New String() {“200”, “50”, VoffSet, HoffSet, Zindex}, paraText, Conlibxml, Device_XML, “text”, “”, “”, “”, New String() {strtype, straction, “”})
VoffSet += 90
Zindex += 1
End If

Next
''Text reading end.


Thanks
anil kasa
Hi Anil,

Thanks for your inquiry.

Paragraph.GetText method returns the text of this paragraph including the end of paragraph character. We suggest you please use Paragraph.ToString(SaveFormat.Text) method to get the text of paragraph. Hope this helps you.

If you still face problem, please share your input document along with expected output text. We will then provide you more information about your query.