Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

How to scroll a found TextSearchOccurrence into view when it isn't?

edited January 2009 in General
Hi,

How to scroll a found TextSearchOccurrence into view when it isn't?

Greetings,
Filip Moons

Comments

  • edited January 2009
    Hi Filip,

    This is not currently a built-in feature of ReportBuilder however it would
    make a nice addition.

    In my testing, I was able to easily scroll to the search position by adding
    the following line of code to the HighlightPage routine of the
    TppTextSearchEngine class. In your case I would recommend creating a custom
    TextSearchEngine descendant and override this routine adding the code.

    Viewer.ScrollBox.VertScrollBar.Position :=
    Trunc(ppFromMMThousandths(FCursorDrawCommand.Top, utScreenPixels,
    Screen.PixelsPerInch));

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.