简体   繁体   English

SSRS-根据页码显示/隐藏组行

[英]SSRS - Show/Hide group-row based on page number

I need to show/hide a group-header-row based on page number. 我需要根据页码显示/隐藏组标题行。 No way I could access the page number inside the group to add an expression based on the page number. 我无法访问组内的页码以基于页码添加表达式。 All I need is to show a group-header-row only from second page (hide the row in first page). 我只需要从第二页显示组头行(隐藏第一页中的行)。

I'm using Visual Studio 2015, SSRS 2016. 我正在使用Visual Studio 2015,SSRS 2016。

Everything works fine except hiding the Group Header 2 from Page 1. 除了将页面1中的组标题2隐藏之外,其他所有操作都正常。

Generally the build in functions =Globals!OverallPageNumber and Globals!OverallTotalPages can only be used in page header and page footer. 通常,内置函数=Globals!OverallPageNumberGlobals!OverallTotalPages仅可用于页眉和页脚。 This might be caused, that the processing of page header and footer are different from the body area. 这可能是因为页眉和页脚的处理与正文区域不同。

There is also no workaround. 也没有解决方法。

You cant store the value of =Globals!OverallPageNumber in a report variable, you cant reference with ReportItems!PageNumber.Value and you cant put the function into the code section. 您不能将=Globals!OverallPageNumber的值存储在报告变量中,不能使用ReportItems!PageNumber.Value引用, ReportItems!PageNumber.Value函数放入代码部分。

So what you can do is, copy the tablix from the first page also into the second page and hide the group header on the copied tablix on the second page. 因此,您可以做的是,也将Tablix从第一页复制到第二页,并在第二页上隐藏复制的Tablix上的组标题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM