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
PageNumber in expression
PageNumber in expression
- Attachments
-
- ReportCountingPageNumber.mrt
- (26.01 KiB) Downloaded 235 times
-
- Posts: 6247
- Joined: Tue Mar 20, 2018 5:34 am
Re: PageNumber in expression
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.
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.
- Attachments
-
- ReportCountingPageNumber modified.mrt
- (6.49 KiB) Downloaded 139 times