Freezing column headers while scrolling in SSRS - reporting-services

I have a simple table in ssrs with a single header row and no grouping. I want to freeze the columns while scrolling. I have set the properties of table(Fixed column headers AS true) . I have also checked the checkbox which says"Headers should be visible while scrolling" but still it doesn't work.
What should i do?

I think this can be fixed by setting the FixedData property to True in Advanced Mode. To get to Advanced Mode, click the down arrow on the grouping pane, select Advanced Mode, then select Details and check the properties there.

The easiest way I found is this one. The Fixed Group property did not work for me.

Related

SSRS: Remove empty spaces in report

Below is the output I'm getting. Even when all options are collapsed, I have a ton of empty space that I'd love to eliminate. I have tried row visibility and textbox visibility, but those are currently working to keep my expand/collapse working correctly, I believe. I also tried looking in the properties pane (F4) and messing with the CanGrow/CanShrink properties but no luck in changing output.
How do I fix this?
UPDATE: Here is the design view
Undo all the visibility changes you have made, and probably the undo the group expand collapse changes you made so you have a fresh start.. Even better, create the tablix from scratch again.
Then on the row group properties under the main design window, right-click the row group you want to initially hide and choose properties.
On the visibility tab.. Select "Hide" (if you want the rows in this group to be hidden when the report opens). Then Check the box "Display can be toggled by this report item" and choose the name of text box from the parent group that you want to click to expand. For example, if you were hiding the 'day' group, selected the text box that contains your month name (default this will be the same as the field name).
That's it, just those two steps to achieve what you want. You can repeat this process the month group using year as the toggle etc..
Ultimately, I found a solution by using Report Builder to do what I wanted it to do. I was able to get the output by visually confirming the template. What's strange, is that when I created it, I then opened it up in Visual Studio to see how it differed, and there was absolutely no visibility changes. Meaning, no cells or rows had the Hide option checkboxed.
Furthermore, it differs from what I built previously by not having the extra columns within the grouping, and maybe that's where the extra blank space was coming from. But unfortunately, I found no quantifiable explanation to better help others.

Prevent header being split into multiple page

In SSRS, there is a KeepTogether attribute for groups to prevent them split across 2 pages. But is it possible to apply the KeepTogether attribute to headers?
I have a group that has 3 rows of headers, in some cases, when rendering the data, if it comes to the end of the page, but still able to fit 1-2 rows, it will print the 1-2 rows at the current page, and split the rest of the rows to the next page like. Thus, the header will be splitted when export to PDF like the image below:
Any idea on how to fix this?
You can try this to see if it works. Make sure your Row Groups window is showing at the bottom (go to the view menu and check grouping if it isn't). Then press the little down arrow at the top right of that bottom pane and enable advanced mode.
Click the groups. They will highlight a pane in your table. Find the one for the header you are having problems with. Now look at the properties pane on the right (you can use the view menu to turn it on if it's not there). There are a few properties to try here. Try experimenting with KeepTogether and KeepWithGroup options.
If that doesn't work out with you then it looks like your only option is going to be the Insert Page Break Before option in the table options menu.

Freezing row headers in SSRS

I know this seems like a duplicate question, but for some reason I can't get it to work.
In my matrix, I'm trying to freeze my row headers so when I scroll right I can still see them.
I've tried clicking the small arrow to go into advanced mode and set FixedData to True on the top most static property, but that didn't work.
I've also tried right clicking the tablix, going into the properties and checking keep header visible while scrolling, and I still get the same error.
The exact error says,
"The table "matrix1" includes a table header or column with
FixedHeader set to true. This is not allowed on data regions inside
other data regions."
What does this error mean exactly?
Am I setting the wrong property to True?
Do I need to create another row or column?
This has been bugging me for awhile, and any advice would be appreciated, thanks.

SSRS 2008: Tablix header in Subreport not repeating

I have a subreport which is usually bigger than one page. The subreport has a heading which should repeat if the subreport is more than one page.
My solution was creating a Tablix Control and put the heading in the first row. In the details row I put the subreport.
First I tried to check Repeat header rows on each page in the Tablix properties to achieve the repeating header, but with no success.
After some research on the internet I found an approach that was already in discussion on stackoverflow and many other sites.
It's about using the "Advanced Mode" but this approach does not work for me either
Here is the link to the second approach on stackoverflow:
Stackoverflow Solution
Helps very appreciated...
There are two solutions that should work:
The Simplest
Open your subreport and move the header row into a textbox in the header of the subreport
Slightly more Complicated
Enter the Advanced Mode for the tablix containing the header row.
Click on the "(Static)" row that is your header row; it's probably the first/top "(Static)" row.
In the properties panel, you should see the row identified as "Tablix Member". If it says textbox1 or nothing at all then you need to repeat step 2.
Change Keep with Group property to "After".
Make sure Repeat on New Page to "True"
That should do it!
I searched in many articles and found that the problem exists in BIDS 2008. Later Microsoft released a fix regarding this.
But, the report designed earlier won't repeat the header. It needs to be redesigned from the beginning

Reporting Services: Tablix RepeatColumnHeaders doesn't work on some reports

So I've got various reports that consist of a DataSet rendered in a Tablix... pretty garden variety stuff. There is a property for the Tablix control named RepeatColumnHeaders, which I have set to True for each report in question. The explanation for this property states “Indicates whether column headers are repeated on each page on which part of the data region appear.” Sounds pretty straightforward, but on some reports it works and on others it does not. I can't seem to find what's different about the reports that might affect this. On one report where the headers do repeat, there is some fairly arcane grouping mojo, but in an example where it doesn't work the Tablix only has one level--no grouping. I would expect the multi-nested one to be the problem, not the flat one.
Maybe it's a different problem altogether. I threw together a simple Tablix rendering SELECT * FROM Foo, accepted all the default values, which results in RepeatColumnHeaders being set to False, and lo and behold the column headers do repeat for that report... Grrr.
Any insights greatly appreciated.
It's a bit wonky from what I've managed to dig up. In your grouping pane, select advanced mode, then select your outermost static row. You should then see the "RepeatOnNewPage" property.
Update: finding Advanced Mode:
The comment by #HCL links to the other answer by #user359904, that has the info on how to find and enter Advanced Mode:
Select the tablix
Below the report are "Row Groups" and "Column Groups", all the way to the right of "Column Groups" is a small downward arrow.
Click the arrow, choose Advanced Mode.
I found a solution that works for me. Vinny's answer led me to it.
Thankfully, I didn't have to recreate my tablix. I had three rows that made up my tablix header. I added three rows outside of the highest level group. These rows are not bound to any group. I modified the rows so that they exactly duplicated the header rows I had in my highest level group. I set the KeepWithGroup property to "After" and the "RepeatOnNewPage" property to true for each of these header rows. I tested the report. The header appeared at the top of every page but due to the duplication of the header rows both inside the highest level group and above the highest level group, the header repeated twice at the top of the first page and at every section break. I deleted the header rows in the topmost section and the duplication went away. Headers repeat correctly at the each break of the highest level group and at the top of each page. There are no header rows in the highest level group.
To set KeepWithGroup and RepeatOnNewPage: Select the tablix. In the group box below the design pane, click on the down arrow to the right of the text that reads "Column Groups" and make sure "Advanced Mode" is checked. Click the first static row and set the KeepWithGroup property to "After" and "RepeatOnNewPage" to true. Do that for each of the rows that comprise your header.
Sorry to beernuts for un-marking your response as the answer; I hope you get to keep the rep points.
The plot thickens. In three tests I found a 1:1 correlation between using the wizard to create a report and getting the desired header behavior, as well as between not using the wizard and not being able to achieve the desired behavior. From there I diff'd the rdl files for a working and non-working example and found this element:
<RepeatOnNewPage>true</RepeatOnNewPage>
In the document at:
Report > Body > ReportItems > Tablix > TablixBody > TablixRowHierarchy
> TablixMembers > TablixMember
I added the same to the non-working rdl and the headers started repeating.
I cannot, however, find a setting, property, etc in the designer that toggles this. It does not seem to correspond at all to the obvious properties as described previously. Is it just an artifact of the wizard? Fortunately it's a fairly easy work-around as I couldn't face recreating a dozen reports using the wizard.
Your post is still being used ;) Thank you all. I built upon what you provided to come up with a solution to restore repeating header rows. I did not have to use the Advanced mode, just some insight... I had two title rows outside all row groups with no column groups. Here is what I did to get the two title rows into the tablix header:
Right click on one title row and "Add Group (Column Group)", Parent Group
Group by '1' (this group will later be deleted so it doesn't matter what you put there
Click OK and the a Header row is added.
Merge all columns in the new header row
In the column group pane, right click on group just created and "Delete Group", select box for "group only" important
Now you have header row you can insert row above or below to add more header lines.
Move your title rows into the new header rows and delete your old title rows.
Last... make sure you check the Tablix property to "Repeat Column Headers on each page"
It worked well and easily repeatable (I had many tablixes).
Sincerely, Alan
In your reports where the header doesn't repeat, did you delete the default header row in the tablix at any point? Once I did that, no matter what setting I tried, the header in the tablix wouldn't repeat. I had to re-create the tablix to get it to work.
It's now the year 2014 and I'm running 2012 version and I used your post to solve my problem - one that experienced SSRS developer in our shop didn't know how to solve (I'm just a newbie). Thanks so much for contributing your solution - it seems to be a timeless issue.
I am adding some screenshots from my SSRS 2012 server..
Now, click on the "(Static)" under "Row Groups" and presss F4.
Also read
TechNet - SSRS: How to Repeat Headers on Each Page