DocIO Find..Replace

Hello. I'm having trouble figuring out the best use for the TextRangesHolder. Is this the only way to find text in word doucments? I have the following:

Dim rg As New Regex("\(\((.|\n)*?\)\)")
Dim rgholder() As Syncfusion.DLS.Collections.TextRangesHolder = doc.FindAll(rg)

Now, how can I loop trough each one & get the actual text of everything it found? Loop through the collection & set a TextRangesHolder? Then how do I get the text from there? Do I have to create a paragraph object?:

Dim pg As New Paragraph(doc)
rgholder.CopyTo(pg, 0)

Thanks for your help!

1 Reply

MW Melba Winshia Syncfusion Team February 12, 2007 02:24 PM UTC

Hi Sarah,

Thanks for your interest in Essential DocIO.

Currently, it is not possible to get the actual text of everything it [TextRangesHolder] found. It is possible only to find the count. I will consult with the development team regarding this feature and will update you the status of this feature with in a week. Sorry for the inconvenience.

Kindly let me know if you have any other questions.

Thanks,
Melba



Loader.
Up arrow icon