Home RAP

PageNo in a variable of a SupReport always 1

edited May 2011 in RAP
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

Comments

This discussion has been closed.