ActiveReports 16 .NET Edition
ActiveReports 16 User Guide / Concepts / Page Report/RDL Report Concepts / Layout / Skip Page Generation in Page Reports
In This Topic
    Skip Page Generation in Page Reports
    In This Topic

    In ActiveReports, you can easily hide or remove the pages in a Page report at run time using the visibility properties.

    The visibility properties for a report page can be set using the Hidden and ToggleItem. These properties let you specify whether to hide or display the page when you preview a report.

    In the rendered report, the page generation for the hidden pages is skipped.

    Hidden Property

    This property controls the visibility of the report page based on the expression that you specify or the value you set, that is, True or False. If you want to hide the report page, set the property to True. In case you want to conditionally hide the report page, enter a suitable expression.

    Consider a scenario where a Page report contains three pages: Page 1, Page 2, and Page 3.


    For the report pages to appear in this manner, you need to set the Hidden property for Page 3 to the expression like follows, which calculates the order amount and hides the receipt page in case the order amount calculates to zero:

    =iif(Sum(Fields!Quantity.Value*Fields!UnitPrice.Value)=0, True, False).

    This is how the three pages of an order in a report are rendered when the order amount is not zero:

    Skip Page Generation

    When the order amount is zero, only the first two pages of the order are rendered and the receipt page is skipped:

    Skip Page Generation

    ToggleItem Property

    This property toggles the visibility of the report page based on clicking the textbox in the report. In the rendered report, a toggle icon appears next to the chosen textbox. You can click the toggle item to show or hide this page.

    You can also set the initial visibility state of the report page using the Hidden property.

    Skip Page Generation