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
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.
Comments
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
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
http://www.digital-metaphors.com
info@digital-metaphors.com