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

PageCount, AbsolutePageCount and TppGroups

edited July 2007 in General
Hi,

My report consists of the mainreport with section subreports. The subreport
contains a group that starts a new page and resets the page number. I want
to print some totals in the footer of the last page of each group. I use

procedure FooterBeforeGenerate;
begin
if ( Report.MainReport.SecondPass )
then begin
regTotalen.Visible := (Report.AbsolutePageNo =
Report.AbsolutePageCount);
end;
end;

SystemVariable PageSetDesc shows

Page 1 of 1
Page 1 of 3
Page 2 of 3
Page 3 of 3

but Report.AbsolutePageCount is 4 so the totals are only visible on the last
page of the last group.
How can I change this so the totals are displayed on the last page of every
group.

Using RB 10.06 Ent, D7

Regards,
Jeroen R?ttink

PS Do you have an answer to my question on 7/3/2007.

Comments

This discussion has been closed.