Hello!
To ensure that the second page of the template (Page2) is printed only when a specific condition is met, use the Page2.Visible property:
In the page editor or properties, you can bind a condition to Page2.VisibleExpression (for example, [ShowSecondPage] == true).
Alternatively, in the Report.StartReport event (or in C# before report.Prepare()), toggle the visibility programmatically:
Page2.Visible = (bool)Report.GetParameterValue(“PrintPage2”);
When Page2.Visible = false, the second page is completely skipped during report preparation.
Comments
Hello!
To ensure that the second page of the template (Page2) is printed only when a specific condition is met, use the Page2.Visible property:
In the page editor or properties, you can bind a condition to Page2.VisibleExpression (for example, [ShowSecondPage] == true).
Alternatively, in the Report.StartReport event (or in C# before report.Prepare()), toggle the visibility programmatically:
Page2.Visible = (bool)Report.GetParameterValue(“PrintPage2”);When Page2.Visible = false, the second page is completely skipped during report preparation.