PageCount, AbsolutePageCount and TppGroups
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.
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.
This discussion has been closed.
Comments
Try using the Report.PageNo and Report.PageCount properties instead. This
should give you the effect you are after.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com