Search code examples
fastreport

How can I hide a page in FastReport?


When I enter a boolean Parameter [ByIssueDate] into the "VisibleExpression" field on Page1 properties, it's ignored and the value from the "Visible" field is taken instead, no matter if the ByIssueDate parameter is true or false.

I was expecting, that the "VisibleExpression" will override the "Visible"

Version: FastReport.Net Version 2021.4.15


Solution

  • Try to assign the boolean parameter in Page1.OnBeforePrint event. Anyway, look here:

    https://forum.fast-report.com/en/discussion/583/how-to-hide-pages