I would like to put a border around each entire group. I have found an expression online to help with this, but it has one flaw. When the group extends to a new page, the bottom border of the last item, and the top border for the first item on the next page do not appear.
Code for top border
=Iif(Fields!ROWNUM.Value = First(Fields!ROWNUM.Value, "EVENT"),"Solid",nothing)
Code for bottom border.
=Iif(Fields!ROWNUM.Value = Last(Fields!ROWNUM.Value, "EVENT"),"Solid",nothing)
based on the logic of this expression, I can completely understand why it does this, but I want to know if there is any way to solve this. Unfortunately inserting a page break between instances of the group is not an option, some of these groups are large and would leave pages almost entirely blank. I believe that you cannot use the global variable page number outside of the header/footer. Is there a "Page break" variable that i can use to say before or after page break?.
Any ideas would be great! thanks
Related
I'm working on a "contract format-like" rdlc report, which will have four tablix with variable numbers of rows. This report also have a fixed "last page" that is set to do a page break "always".
What I want to achieve is to "span" some element to gave the impression that the remaining white space between penultimate/before last and last page won't be written/added with any more info in the future (as we use to do by handwriting/completing, in the past). The ideal object could be a transversal line (I think that's not possible in my research). Also I have found some workarounds that take in count the "number of rows" of each tablix and do and approximation height, then add the "needed" rows to the end of the last tablix but that's not quite the solution I'm looking for.
Please look the attached image for a better idea of the line desired location:
Explanation-Layout-And-Variable-Height-Meaning
I hope you can advise with your experience on this (even if not the solution some idea of how to achieve it).
Thanks in advance!
Unless I'm missing something....
If you wan to simply add a page break and then a 'blank' page...
Just add a rectangle under your last tablix.
Make it short vertically, (the width does not really matter as long as it's no wider than you tablix). Move it so it's close to the last tablix (say 5pt below)
Right-click the rectable and choose properties. Now set the properties of the rectangle to "Add a page break before"
This will force a page break after the last tablix and then push the empty rectangle onto the next page giving the impression that it is blank.
I'm trying to show the tables' headers on every new page and it is working in the usual preview mode in reporting services but it isn't working when showing the report in print layout mode. It shows the headers on some of the pages but only when my parent group is at the top of the page which it rarely is cause of the other "child-tables" data that shows after.
I've been following some other SO-posts where they suggest going in to advanced mode by the column group, choose the static field belonging to the table headers, putting "KeepWithGroup"-property to AFTER and the "RepearOnNewPage"-property to TRUE and ofcourse in the tablix properties check the "Repeat header columns on each page"-box.
While doing everything that people are suggesting in other SO-posts I just can't get it to work.
The image below shows what the table looks like, where the yellow marked area is the header and the red is the "child-table" I put in after merging that row. Between the marked rows is the parent table which the child table is ordered by.
The layout of the table in the report.
Please help me, this is such an annoying problem!
EDIT ---
Okay, so I get that the headers follow the group and that the "KeepWithGroup" = After shows the headers only when the group starts at the top of the page.
Is there any workaround to make the header showing on every page without making it a page header?
Please follow all the other advice readily available on this topic:
RepeatOnNewPage property to **True**.
KeepWithGroup property to **After**.
But then, make sure your lowest level Group has the KeepTogether property set to True.
Otherwise, you'll just be hoping your data breaks on the page for the header to repeat.
After much pain with this exact issue, even setting RepeatOnNewPage to true and KeepWithGroup property to After...ultimately the fix was adjusting the top and bottom margins of the report.
The weird part is that the headers correctly repeat in the report preview, but not after clicking the print layout button.
changing the top and bottom margin from 0.25 to 1 fixes the repeating header issue, but then adds some white space. I'm still trying to figure out the causal relationship between margin and why it breaks the header repeating...but it does fix the problem for some reason.
I have spent hours trying to add a border between the groups in my report and I am obviously missing something very simple.
My Report:
I have set it up with a parent group, child group, and details.
I need a darker or thicker line between each parent group instance (Every time the Company Name Changes).
At the moment it Renders like this:
with all the borders the same around every cell.
I have tried the suggestion from https://stackoverflow.com/questions/12617953/border-formatting-of-ssrs-row-group/12619892#12619892
(post with suggestion to add extra row outside of group with a border and remove
borders from details) but ended up with thick borders around all cells.
I Tried selecting the Row Group and adding the following into the Border
IIf(Fields!Name.Value=First(Fields!Name.Value,"Tablix6"),"Solid","Nothing")
(added to BorderStyle Top)
IIf(Fields!Name.Value=Last(Fields!Name.Value,"Tablix6"),"Solid","Nothing")
(added to BorderStyle Bottom)
This generated an error message that the Iif statement could not do that many Options.
I tried the codes with different colours in the BorderColour just in case I was unable to see the difference in the rendering and with different thicknesses by altering the "Solid" to a colour/pt.
I also tried with Previous instead of Last but that also generated an error message around 'Previous not being supported'.
There are a lot of posts that suggest adding a group footer and adding the border to that and then minimizing the size of the group footer but I just cant seem to find how to add a group footer. I cannot seem to get that as an option in the drop down menus.
I have looked at so many different posts on different sites that I now cannot see the wood for the trees and really don't know what to try next. Please could anyone suggest where I have gone wrong.
I've not come across anything like I am looking for so either I'm either not asking the right questions (for which I will apologize for re-asking a question) or it's not been asked.
I'm working on a report to print header information onto pre-printed carbon copy forms on a continuous form feed impact printer. The form is two pages and the header for the second page only contains part of the information that the header on the first page has.
I have the first page header working fine. I played with using rectangles and it was printing on target on every other page. The problem comes in when I try to print the page two header.
The way I am formatting the headers is that I have a single cell tablix with a rectangle in the cell. I've measured out where the 11 fields belong for page one of the form and placed them on the form. This all works correctly. Below that, I've inserted a second rectangle with the add page break before property checked. In that rectangle I have two of the fields that are repeated one just above the other (field 1 and field 2). Field 1 is in exactly the same spot as it is on page one. Field 2 is higher and to the left of where it is positioned on page one. The report body has no margins. Positioning is all done directly through the elements themselves. Field 1 sits about 1/16 to 1/8 inch lower than it does on page 1 even when position top is set to 0 (and there is no page margin). I can position field 2 exactly where I want it to be however. If I have multiple forms print out, all the page ones are perfect and page 2 field 2 is spot on but page 2 field 1 is always too low.
I tried separating the rectangles but was unable to connect the dataset to the second rectangle.
Is there a better way to do this? Is there a setting I'm missing that is adding padding to the second rectangle? Any help is appreciated.
Not quite the answer that I was looking for but it nearly fixed the problem. It turns out that the field itself had padding on it. I'm not sure how as I copied and pasted it from the first page but it moved it up to a acceptable position. It is still a bit low but close enough that the requester is happy with it.
I have a report with a tablix on the right side and several textboxes arranged in rows and columns on the left. While previewing the report, the tablix gets expanded with the separate values in them and because of which some of the text boxes are also getting pushed down leaving blanks spaces and making the report look unformatted.
I have attached the report format. Please let me know if you have any solution to this issue.
You need to place your report items in rectangles to stop them interacting with each other. Put your items on the left all into the same one and the table on the right into it's own.
Have you tried setting the Can Grow attribute to False or did you need it to expand? If so I would actually increase your Tablix size to the max it can to not push the text boxes and then set the property to Can Grow to false.
I think I know why rectangles didn't work for you. I have a similar report I am trying to create with the same format. I had the same problem you mentioned where white space appeared above my report objects, and the objects on the left still did not appear in the correct places.
What I found was that you need to create the rectangle first and then add objects into it. It appears that the above problem occurs when you try to place a rectangle on top of your report objects.
I know this is 4 years late, but I thought this might hopefully save someone some time.
Go to Report Properties to select columns number from 1 to 2 to see information side by side instead of going to next page.
Report Properties