PageNo in a variable of a SupReport always 1
Hello,
I have a SubReport on the SummaryBand of the main report.
On this SubReport I have a variable. In it's RAP code I would like to do
something depending on the current page number.
if (Report.Page.PageNo > 1) then begin
DoThis_1;
end
else begin
DoThis_2;
end;
But this seems not to work as PageNo is always 1. I've tried AbsolutePageNo
too, but it's always at 1 as well.
How can I check the page number correctly in such a case?
Regards,
Mark
I have a SubReport on the SummaryBand of the main report.
On this SubReport I have a variable. In it's RAP code I would like to do
something depending on the current page number.
if (Report.Page.PageNo > 1) then begin
DoThis_1;
end
else begin
DoThis_2;
end;
But this seems not to work as PageNo is always 1. I've tried AbsolutePageNo
too, but it's always at 1 as well.
How can I check the page number correctly in such a case?
Regards,
Mark
This discussion has been closed.
Comments
In RAP, when coding for a subreport, the Report object refers to the
TppChildReport that represents the subreport. If you would like to
access the main report use the Report.MainReport property.
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
makes sense and works just fine, thanks you
Mark