SSRS Exact copy of a table does not stay within the page - reporting-services

I am trying to set up a 3 part check where the header of the report is the check itself, and the next 2 sections are each a table with the detail data. One copy stays here while the other goes with the check as a stub. I want the data to be exactly the same and print on the same page. The problem I am having is that if I print 2 checks the second table does not appear on the first page but shows up on the second page with the second check (2 tables in the bottom of the second page). How do I get the second table to print on the page with the proper check? I have put both into a rectangle in the body but that has not helped.
I also need the second table to be in a specific location on the page so it can't be put into the first table since the number of detail rows may vary.

How do I share the report design when I can't upload files? It's also hard to get a 2 page pdf file into a single snapshot. The image I uploaded is the second page. The second table should be on the first page not the second page.
The other issue with this is that my page header is expecting to find a total of the fields in the table, so if I use 2 subreports and remove the tables it can't calculate the total.

I am still confused as to what to do. The ultimate goal is to have the check print like this (works fine if only printing one check):
Here is a snapshot of what my rdl looks like in report builder:
I want the exact same table repeated on the same page. I have tried putting them both in a rectangle but that didn't work. I have tried making the second table a subreport but that didn't work. I have tried making 2 subreports with each containing a table but that didn't work. The check part of it is in the page header and it uses the sum of the data from the table to get the total check amount.

I finally got it working! Here is what I did.
1 - Created a subreport that holds the copy of the first table
2 - Added 2 rows below the detail group and put it outside of the group
3 - Put the subreport on the second added row
4 - Made the first added row below the detail big enough to force the subreport to be on the page where I want it.
Here is what the rdl looks like in report builder

Related

Aligning 2 Tablix in SSRS

I have 2 tablix one Table and one Matrix that are lined up side by side. They have relational data that I can't combine in a single query. They line up perfectly when exported and appear to line up correctly inside the original report as well. However, when it goes to load a new "Page" in Preview it loads an extra row for the matrix as compared to the table which makes the rest of the values off by 1 for each page that gets loaded.
Is there a good way to make sure they load the same number of rows on each page?
I have 2 suggestions. You probably already tried the first, but just want to make sure it's covered.
Check the properties to make sure the location from the top is exactly the same. Also use a whole number, not some random fraction because it can have rounding issues.
Add a rectangle to the report. Drag both tables onto the rectangle. Having multiple objects inside a rectangle helps to hold them together in position when the report renders.

How do I get an SSRS subtable (tablixrow) to split across page breaks?

I have inherited an SSRS report which is basically a single table (tablix), one row of which contains a subtable. When the subtable is less than 10 rows, the report fits on a single page. However, when there are more than 10 rows, the report inserts a page break before the subtable and starts a new page, leaving over half of the first page blank.
What the users would like is for the subtable to split across the page break; that is, have the first 10 rows on page one, then start page 2 with a header row for the subtable and continue it.
Is there a simple way to achieve this or is it a case where the report really needs rewriting from scratch?
FYI, we are using SSRS 2012.
In inner tablix make sure keep together on one page if possible is unchecked.
Other way you can handle is remove the inner tablix and incorporate the same functionality in the main table.
After further attempts, I managed to get the table to split. The problem was that the row did not contain only the tablix, but also had textboxes to either side. It seems these were kept together as a group.
FYI, the more interesting problem was getting the headers onto the 2nd and following pages in the sub-table. This MSDN article explained the use of advanced settings to achieve this.

SSRS not rendering all page breaks in PDF export

I have a report is ssrs, it consist of a main report which has a header containing the page number and 2 sub reports (report page 1 and report page 2) within a tablix. Report page one comes first, then report page 2 displays on the next page after the end of report page 1. The subreports can be anywhere from 1-3 pages. The page numbering is reset between each set of report page 1 and 2 (so if page 1 is 3 pages and page 2 is 2 pages, it goes from page 1-5, then resets). These are called for each record (with grouping) from the main reports' query. The report is around 1000 pages total. It renders perfectly on screen, but when I try to export to PDF, it will sometimes (like 1 time in the 1000 pages) display part of report page 2 on a page (as expected, the page number matches with it), then it will start printing report page 1 of the next group on the same page.
Here is the layout of the main report:
Here is the document outline for better understanding:
And here is the page that is wrong...
This is what it should look like (the last page of sub-report page 2 even has just the total record like the broken one!
I have tried everything I can think of. I have tried (i think) every combination of page breaks on the rectangles and groups, I have tried making a tablix with 2 rows using the same group and again tried every combination of page breaks. I have tried changing the number of records on a page. I have tried changing the consume whitespace option on both sub and main reports. I have tried adding both calculated and random amounts of white space. I have recreated the report from scratch a couple times. I'm sure there's more, but it would be like going through a full feature list of SSRS... Basically, I tried everything I could think of, then everything suggested in the links on the first page of about 10 different google searches. I just have no idea what is going on with this, any help would be greatly appreciated!
Let me know if you need any more info, screenshots, or whatever and I will try to provide. It may be highly "redacted", but I will provide anything I can.
Thanks, Kevin
Try check the setting "Between each instance of a group" in group properties of tablix.
Try checking your XML for empty TablixRows (which will not show up in the Document Outline). I found with my report that empty tablix rows screw up page breaks in subsequent rows / sub reports when exported to PDF. Where possible hide the TablixRows or insert and empty text box.
This appears to be a bug with SSRS when editing the XML by hand. The Visual Studio GUI seems to not let you delete the last element in a row - perhaps this is a work around. An error or schema validation message would have been nice for us hand coders!
Hope this helps.

Repeat multiple charts on each page of subreport

I've a SSRS page which has header, two charts with different datasets and a subreport below charts.
When I run the page and drill down (I click on one of the bars of chart, it calls itself) and data populates in subreport which spans multiple pages.
My problem is I want to repeat those charts on each page. I've searched and tried a lot However nothing worked forme.
How can I repeat charts in multiple pages of subreport? Please note that I've got charts with different data sets and that subreport is used at multiple places.
Thanks for the reply mike.
I believe it can not be achieved using subreports. hence, i embedded that subreport tablix into report and did as suggested by mike(charts went into header row).
Since tablix accepts only single dataset, i created a big dataset that has all the fields for two charts and data and applied required settings to get the job done.
It worked for me(at least to get the job done.).
I had a report that after each record (customer), I put a page break so that each record got its own numbers in one page. I also wanted to add a graph specific to only that customer. So i added the graphs into a table. In the table where my graphs were place, I added a parent group group - the same group as my data and I checked that the table also had the page break on the same group. This separated each record into a page each and also added the graphs to its corresponding record.
I would try to wrap the two charts and subreport inside a tablix. The dataset for the tablix would be one that returns a single row.
The two charts would go into the header row(s). The subreport would go in the Detail row.
Row and Column sizes need to be expanded to fit the chart and subreport sizes. There may be only one or two Columns depending on your layout.
Then I would use the dreaded "Advanced Mode" technique to get the header row(s) to repeat on each page, e.g.
http://blogs.msdn.com/b/robertbruckner/archive/2008/10/13/repeat-header-and-visible-fixed-header-table.aspx

Report Services: Controlling page breaks inside a table

I'm using a table on my report to present the data. Since it was a lot of data and I wanted to print the report on a A4 page, I split each row into 3 different rows.
My problem is when the report goes to the second page, I want it to break before or after the 3 rows.
example:
name age
address
contact
name age
address
contact
name age
address
* page break *
contact
this is what normally happens. I want to ensure that the page break only happens on the lines.
There are multiple strategies to follow:
The KeepTogether is useful in this case
If you want it to fit on one page only try adjusting page margins, padding, font size, line height to make the report render more compactly
Another alternative is to create a table group on the person, and from the group properties (edit group) check the page break at end property. this way you can have each group on a separate page
Hope this helps
I'm ended up creating a subreport to represent each item.
I looked for the KeepTogether property but that's probably only for reporting services 2008 (I'm using 2005).
If you have the table in a subreport, you must also Right Click -> Format Object -> Uncheck Keep object together.
This was the step that did it for me after I unchecked Keep object together on the table and the subreport details.
I had the same problem, tried 'Keep together' and it didn't work. After a long time of changing and trying many things the one thing that did the job was reducing the bottom margin of a page.