Displaying a field from the last record on a page.
I have a simple report that is a phone directory listing. It has the name
and phone listed in two columns. In the page header, I want to print the
name of the first person on the page (not a problem), and on the right of
the header, I want to print the name of the last person printed on the page
(a problem), just like a telephone book listing.
I have tried many different combinations of components, events, timing
settings, cache, and pass settings. All I ever seem to get is one of four
outcomes: 1) Nothing prints. 2) The first name of the *next* page
prints. 3) The last name printed on the last page prints. or 4) A name
from a completely wrong page prints. (With "prints" meaning preview or
print.)
A specific example would really help...I have been reading posts and trying
different settings for a long time now.
I'm using D5, RB 5.5 Enterprise (using the End User report designer, from
the Report Explorer) in Win 2000.
Thanks,
T. Andrew Lyric
and phone listed in two columns. In the page header, I want to print the
name of the first person on the page (not a problem), and on the right of
the header, I want to print the name of the last person printed on the page
(a problem), just like a telephone book listing.
I have tried many different combinations of components, events, timing
settings, cache, and pass settings. All I ever seem to get is one of four
outcomes: 1) Nothing prints. 2) The first name of the *next* page
prints. 3) The last name printed on the last page prints. or 4) A name
from a completely wrong page prints. (With "prints" meaning preview or
print.)
A specific example would really help...I have been reading posts and trying
different settings for a long time now.
I'm using D5, RB 5.5 Enterprise (using the End User report designer, from
the Report Explorer) in Win 2000.
Thanks,
T. Andrew Lyric
This discussion has been closed.
Comments
creating a draw command to accomplish this.
http://www.digital-metaphors.com/tips/PhoneBookName.zip
Cheers,
Jim Bennett
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com
Thanks for the reply and the example.
I'm not sure I was clear on one point though...I need to be able to do this
in the End User Designer using RAP (not Delphi).
Thanks,
Andrew
T. Andrew Lyric
LyricCode Software
www.LyricCode.com
function to Delphi. You need to provide the current page object (since it
isn't visible in RAP) to assign the draw command to the page as in the
Delphi code. There are examples of creating a RAP pass through functions in
your installation of RB in the RAP demos directory.
Cheers,
Jim Bennett
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com