Conditional Visibility and Page Breaks with SQL Server 2005 Reporting Services

后端 未结 7 1121
渐次进展
渐次进展 2020-12-17 10:06

I know there\'s a bug with conditional visibility and page breaks with SQL 2005, but I wonder if anyone has come up with a work around.

I have a table that has a con

7条回答
  •  没有蜡笔的小新
    2020-12-17 10:40

    Place two rectangles, one inside the other.
    Place your table inside the inner rectangle and set it to always be visible.
    Set the inner rectangle's Page Break to Insert After Rectangle.
    Set the outer rectangle's visibility to use your conditional expression.

    The page break and the conditional visibility are now separated, and the inner rectangle's page break won't be processed if it is not visible, but it will if it is visible.

    Edit: When I tried this, it did not appear to work in the Preview tab in Visual Studio, but it did work in the Print Preview and when I exported the report to PDF.

提交回复
热议问题