PageNumber in expression

Stimulsoft Reports.NET discussion
Post Reply
mikry
Posts: 42
Joined: Fri Mar 23, 2012 3:57 am

PageNumber in expression

Post 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
Attachments
ReportCountingPageNumber.mrt
(26.01 KiB) Downloaded 235 times
Lech Kulikowski
Posts: 6247
Joined: Tue Mar 20, 2018 5:34 am

Re: PageNumber in expression

Post 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.
Attachments
ReportCountingPageNumber modified.mrt
(6.49 KiB) Downloaded 139 times
Post Reply