Posted 8 July 2021, 12:08 pm EST
Hello,
using the newest version of ActiveReports.NET 15 running inside a Linux Docker container there is some weird behaviour when trying to get an element to only show on the last page of a report.
Setting the visibility->hidden expression to “=iif(Globals!PageNumber = Globals!TotalPages, False, True)” results in the element showing up on each page. Same for “=iif(Globals!PageNumber < Globals!TotalPages, True, False)”.
Now this is where it gets really weird: If you put these expressions into a text field, they calculate the correct value for each page(i.e. True on every but the last page). Let’s say a report has 5 pages and instead of using Globals!TotalPages you put 5 into the expressions above instead, it will work correctly again. However the amount of pages varies, so this is no solution.
Any help would be greatly appreciated!