To search a keyWord in Microsoft Office Word documents search(String) method is used. This method returns the collection of SearchResult objects. For details, see Search Text.
Here are the steps To search a keyWord in Microsoft Office Word document:
Instantiate Parser object for the initial document; Call search(String) method and obtain the collection of SearchResult objects; Iterate through the collection and get the position and text. Warning search(String) method returns null value if search isn’t supported for the document....Office Word documents / Search text in Microsoft Office Word documents...Search text in Microsoft Office Word documents Leave feedback To...