Page 1 of 1

PageNumber in expression

Posted: Thu Jul 19, 2018 11:42 am
by mikry
Hi, i have a problem with Shrink function.

If have in Text expression something simple like "1==1", then Shring works normal. Space between controls disappear. But if is in Text expression system variable "PageNumber == 2", then Shrink doesn't work :-( and empty space is still there.

Can you see my simple example, please?

Michal

Re: PageNumber in expression

Posted: Mon Jul 23, 2018 8:48 pm
by Lech Kulikowski
Hello,

Aggregate functions and functions associated with page numbering are calculated "delayed", at the end of the report rendering.
At the time of rendering a component with this expression, the CanShrink property does not work.
As an option - you can make a calculation in the event GetValue of the textbox. If you use the IsLastPage function, you may need to enable DoublePass.

Thank you.