Search for Text in a Document

Hi All, I have a form with multiple fields.The requirement is i should have a Action button which prompts a dialog box.In the dialog box i should enter the text to be searched on clicking the OK button.All the text with the specific search value name should be highlighted and displayed how can this be done.The operation can be done after the document is saved.Please help me in this regard

I have tried using the UIdoc.FindString() method it is searching on only one field.How can this be solved

Subject: Search for Text in a Document

I believe in order to make it work like you want you’d need to save the document, place it in Read mode then do your search.