Find a specific line in FP

E

e.pricecut

I'm trying to create a routine in VB, which opens FP window, finds a
specific line and highlighted it in FP window. Given that I have line
number and line content in advance did the following:

Opened a page as:

fp.Application.LocatePage "c:\somepage.asp", fpPageViewHtml

And then used this sample:

Dim objSearch As SearchInfo
Dim blnFound As Boolean
Dim objRange As IHTMLTxtRange

Set objSearch = fp.Application.CreateSearchInfo
objSearch.Find = "Some content<table><tr>...."
objSearch.Action = fpSearchFindText

Set objRange = fp.ActiveDocument.selection.createRange
blnFound = fp.ActiveDocument.Find(objSearch, Nothing, objRange)
'If blnFound = True Then objRange.Select
objRange.Select

But this does not search for the line content literally.. It returns
the result ONLY when I specify the text portion of the line. The page
is a collaboration of ASP/HTML/Javascript and the research line can be
anywhere (also got the line number in advance).

I tried to open a page as fpPageViewText ... got error.

Are there any other controls to make this possible?

Appreciate any pointers.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top