Searching for page number
Posted: Fri May 25, 2007 2:19 pm
Hi
Is there maybe a way to find a number of page that has specific word in it after the page has been rendered, but before it is shown in print preview. For example, I have a list of peoples names with 10000 names that are spread over 50 pages. What I need to do is find the page number on which the name "John" is.
I need to do it from my application. I think that the code for that should go something like this:
I hope there's a way because it would help me extremely.
Thanks!
ivan
Is there maybe a way to find a number of page that has specific word in it after the page has been rendered, but before it is shown in print preview. For example, I have a list of peoples names with 10000 names that are spread over 50 pages. What I need to do is find the page number on which the name "John" is.
I need to do it from my application. I think that the code for that should go something like this:
Code: Select all
Dim rpt As New Stimulsoft.Report.StiReport
rpt.Load("Report.mrt")
rpt.RegData(MyDataSet)
rpt.Compile()
rpt.Render()
'The code for finding the page number which has the word in it
Thanks!
ivan