SSRS - Show/Hide group-row based on page number - reporting-services

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.
Everything works fine except hiding the Group Header 2 from Page 1.

Generally the build in functions =Globals!OverallPageNumber and Globals!OverallTotalPages can only be used in page header and page footer. 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.
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.

Related

SSRS Report appears with empty tablix on the last page

Dears,
I developed the report with some of the groups and everything working well but when executing it always get empty tablix on the last page like the below image
Empty Tablix
I have tried many solutions but without a real solution yet
The command you mentioned is true just make sure to add the footer in the first and last page from footer properties

SSRS Force blank pages

I have some SSRS reports that are generated via a subscription. They Get PDF'd and dropped on a share. The way the report was designed there is a potential for one record (or row if you will) to take up more than one page. I would like to know if it is possible to insert a blank page only after a single record/row takes up more than one page. This includes not showing any headers or footers on the blank page.
I've tried adding a text box with a form feed character to the end of the page, which did not work. I also tried creating a text box that is wider than the page (using an expression to control it's visibility) but that just forced the body of the report to be larger than the report's width which caused blank pages to show up everywhere.
Any help would be great.

Rdlc: dynamically hide item in footer

I want to hide or show certain controls in the page footer of a rdlc report based on what happens in the report. The body contains a couple of a tablixes and as soon as one of those tablixes is shown on a page I don not want to show certain controls in the page footer. I tried couple of things, like setting a shared variable using custom code and hide based on this variable, but it hides the controls on all page footers, instead of hiding them as soon as the tablix is on the page (when the variable is set).
You can refer to report item from report body, like this:
ReportItems!myTextBox.Value
You may need to create some invisible textboxes in tables or in other area of the report body that would contain your visibility criteria.
The only catch is that you can refer to only one report item in your footer, so without knowing more about the logic of the report, it's hard to say if this would be sufficient. You may need to use table footer instead, for example.

Keep header row in each page

I'm writting a SSRS 2008 report using 1 tablix and 2 Row groups, I've flagged the page break options for the parent group and Rows headers options in the tablix properties.
The page break is working fine, but I can't show the header en each page. I was tried to many ways with unsucessfully result.
If you want a page header to appear on every page, there is an option to add page header sections in SSRS: on the design surface, right-click the report, point to Insert, and then click Header or Footer.
More information about page headers and footers in SSRS can be found here.
There's two sets of properties and both have to be set... one on the tablix itself (repeat on new page), then just above the group list there's a button on the right to go into advanced mode. That shows you some hidden (Static) groups, and once you select those they also have properties to repeat on new page that have to be set.

How do I shows column headers of main report on each page when subreport renders on more than one pages

I have few subreports in a sql main report(.rdl file) using VS/SSRS 2008.
The subreports start approximately on the middle of the page in the main report detail section. I have one group in main report, shows header information and pass one parameter - ReportID to each subreport.
I also have checked both:
Row Headers – “Repeat header rows on each page” and
Column Headers – “Repeat header columns on each page”
on General tab of Tablix properties of the main report.
If I have few detail lines in the subreport, so that all can be rendered on page one, everything is ok.
If I have more detail lines in the subreport so that it's not possible to print all on one page, the subreport renders from the fist page and moves on to page two, three and so on.
When I have more than one page of data in the subreport, it is also started on page one, and continues renders on second page and so on...
However, it doesn't show the main report's column/row headers on subsequent pages of the subreports?
I've noticed that when next item/ReportID starts in my main report group, it prints column header only on the first page but not any subsequent page and so on...
I also tried to check only ONE, either
Row Headers – “Repeat header rows on each page” OR
Column Headers – “Repeat header columns on each page”
on general tab of Tablix properties of the main report BUT didn’t work?
Any ideas how to print header info on each page when subreport has more than one page data?
Pagination is always fun in SSRS.
Have you looked at the page size/interactive of the subreport? This may stop the subreport paging, but I don't know if it's what you want.
An older article on pagination
And a newer one
Presently I am encountering the same problem. In a previous SSRS report we got it to work by putting our tablix inside a single-cell list item so that the headers were repeated. Now I am working on a different report, and when I try the same thing I'm getting this error:
[rsInvalidDetailDataGrouping] The tablix ‘tablixOpportunitySummary’ has a detail member with inner members. Detail members can only contain static inner members.
I've searched extensively, but this is the only link which indicates an known problem in SSRS. At the time of this post it contained 4 workarounds:
https://connect.microsoft.com/SQLServer/feedback/details/337720/katmai-reporting-services-2008-tablix-control-repeat-column-headers-does-not-work#
A little late, but I think this is what you are looking for:
You need to go to tablix properties > General and check the option Keep header visible while scrolling. Then go to column/row groups in the advanced mode, chose your static row and set the Fixed Data mode to True, Repeat on new page to True and Keep with group to After.
Here is probably the best reference: Here