Hiding one textbox in the table header when it is not in the first page - reporting-services

Help me please. This thing drive me crazy. It really should be a simple solution but I can't find it, even with Googling.
I have a subreport that display deposit transaction banking statement from account (customer).
This subreport will be accessed through main report that loop all accounts in one branch, so it's like a batch report processing for all customer in a branch. Rendered to pdf and distributed to all our branches.
Since I know that subreports header footer won't work on main report, I decide to move the subreport header into subreport table header and make it looks like it was a report header. But this is one problem I can't solve: there is address box that should only visible on first page for each customer, along with the other header that always visible.
And this will be printed on pre-printed paper, so I cant make the address box outside the other header since the report would be shrunk, without the address box, at page 2 and the rest of the pages from each customer, which will make the table header and the content go up and the positions will not match with our pre-printed paper borders anymore.
What am I supposed to do? Please help, I've been searching andn trying for 3 days and can't find any working solution.
Thanks.

I suggest:
Set the subreport table header row property RepeatOnNewPage to be True (in the Properties window).
Set the subreport table header cells Visibility>Hidden property for the address box cells to be a formula that evaluates to False for the first page, and True for all subsequent pages, such as:
If PageNumber = 1 Then False Else True
This should ensure that the table header is printed on every page, with a blank section the size of the address box included on all pages after the first page.

yes.
the address box is only at first page for each customer since it is for posting address. i cant tolerate address box in each pages of each customer because it would be very awkward.
and i have to maintain the space on page 2 onwards so the report don't collapse (header going up of the paper) and not match with our already-printed (already have company logo and borders) papers.

Related

trying to generate a report that would group by a header in SSRS

I am trying to create a unique report and I'm really struggling how I could do it. Here's an image to give an idea:
The report is has a parameter that I pass with a Client ID. I am able to pass multiple Client ID and I am hoping that this generate will display the correct data in a format that I hope to achieve.
let's say I enter ClientID 17,19:
on the first page of Client 17, I want to be able to see content in the red border, below it i will have a tablix and some more stuff. The tablix will have a lot of data and will go to the 2nd page. On the 2nd page, I only want to see the content in the green border.
For next client ID (19), I would again hope to see the content in the red border, and again, if the rest of the report goes to 2nd page, I would want to only see the content in green border.
Anyone have an idea?
I am able to create a report like this for just a single client, as I can make the PAGE HEADER not repeat on each page, and include the Organization: ABC COmpany and ClientName in the Tablix with the rest of the data.
But when it comes to doing multiple clients, I am struggling to make this work.
Put a table in your report that is grouped on your ClientID field. This will initially give you one table row per ClientID.
You can then insert a new row inside the group. This will give you two rows per ClientID.
In the top row, add everything in the red section from your question. You can do this either by adding a sub-table into the textbox that has rows and columns formatted to display the Client's address details, or you can add in a Rectangle to allow free form placement of other report items like text boxes.
In the row below this one, do the same again. Add in everything you would need to display your data as per your green section.

Print Layout not showing repeating table headers ssrs

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.

SSRS pre-printed form second page format issue

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.

SSRS - RDLC Tablix Rows will not split across pages

I have a tablix with two columns of data (the section name and the section text). The section text has grown so large for some sections that the row representing the section takes up 2/3 or more of the page. THe report prints fine until on of these large rows would have to split over the end of a page and continue on the next page. In this case, and only in this case, the rows leaves large amounts of white space on current page and start on the next page (as if it had a page break before it)
I have already set the Tablix General Property "keep together on one page if possible" to true and all the other page break options for the tablix and row groups to false, to no avail.
Does anyone know of a trick or work around to make the large rows split over pages??
Setting Keep together on one page if possible to true/checked will cause SSRS to attempt to keep the row on one page, which means if the data spans across page breaks it will move that row to start on a new page so that it can be seen on one page, which would introduce white space where the row would be if the table was contiguous. So you need this setting set to False/Unchecked.
Next, ensure that the row group proeprty Keep together is set to False. This can't be accessed through the normal dialog box. If you don't have the properties pane showing in BIDS, then pressing F4 will bring this pane up. Select the row group(s), and ensure the property is appropriately set.
Also make sure that the text boxes inside the tablix are also set to KeepTogether=False. This will fix the problem.

How to keep List contents on the first page? (SSRS 2005 - PDF Export)

I've got the following report setup:
1. Letterhead (not in the header, since i only want it on the first page)
2. List control with some data
when i export the report to PDF, and the contents of the List are less that one full page - my letterhead is displayed on the first page (the rest of the page is empty) and the List content gets moved to the second page.
if the List grows over 1 page - reports is showing up just fine (Letterhead and portion of the list on the first page - the rest on the second page)
It looks like it tries to keep the list on 1 page as long as its contents fit on the page - but when you add the letterhead to the contents it overflows the page, and the list gets bumped down to the next page.
Is there any way to keep the list on the first page regardless of its size.
Putting the letterhead in the list is my last resort, I'd like to hear some other solutions.
uploaded a sample .rdl to illustrate the problem
got rid of the list for simplicity, the problem seems to be with a textbox wanting to show up on 1 page
p.s. see this question for more details
What is the source of your text? Is it coming from a dataset? If so, Add a paragraph id in it, set your table to group on the paragraph id and show only the group header. In the group, add a bottom padding value of say 5. The table will handle the paragraph breaks for you, and if it grows more the a page it will handle it for you. Make sure that keep together is set to false. The paragraph id will be used to sort the dataset by id ascending.
sorry I didn't notice your comment at the end. The only other thing that i can think of is to shift your list up closer to the header and eliminate all empty space at the end. Also, make sure the KeepTogether option in the list is set to false. This way it will break up your list rather than move it to the next page.
you can put both the letterhead and the list inside a rectangle so they are always grouped together.
Reporting services also tries to keep the relative spaces you have in the designer, so if you list is aligned to the bottom of the page and there is a space form the header; it will keep the space on top and align everything to the bottom of the page.