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

Newbie Question 3 of 2 :-)

edited May 2002 in General
Same directory from below...

I need to make an index that shows the page numbers from the prior pages.
Any ideas for that...

Eric

Comments

  • edited May 2002
    an index...
    well i gues that you'll have to make your report 2-pass
    that way you are able to 'know' what has been printed on what page
    furthermore you can force a page break when the group changes
    you can define for example a dummy group wich breaks on the first letter of
    the company
    so all companys with B start on a fresh page
    in the onbreak you could code something to keep the index
    when the index gets printed you could place labels and fill those labels in
    the onprint event based on your index in code
    thats how i should approach this ...
    be sure to get familiar with the timing of events in RB, cause you don't
    want double entries in your index and i have not checked this solution
    the onprint event for example gets fired multiple times so that's not the
    right place to code the index..
    so puzzle on, you'll find the solution

    Marc

  • edited May 2002
    Make your report two pass and create a subreport in the summary band which
    will hold the contents of the index. Build up the index while traversion the
    data by using the Print events. See the demo below for an example of
    creating an index.

    http://www.digital-metaphors.com/tips/IndexOfContents.zip

    --
    Cheers,

    Alexander Kramnik
    Digital Metaphors

This discussion has been closed.