Is it possible to duplicate a certain page in SSRS? - reporting-services

I have a requirement on a report that requires me to replicate a certain page based on a certain data. For example Process page = 5 so therefore the page on which it has the process must be replicated 5 times. Is this possible programmatically on SSRS?
Thanks

As #Filburt pointed out. You can do this with a subreport.
You need to build a dataset that will contain one row per page to be repeated, so in this case just a list of numbers 1 to 5 will suffice. Then add a table to your report that uses this dataset as it's source. Make the table one column wide and insert your subreport into the only cell. This will produce a 5 row table each of which will contain a copy of your subreport.

First, you need to duplicate the results that needs to be replicated:
Oracle duplicate row N times where N is a column
Then you can add page group:
How to do page grouping in ssrs?

Related

SSRS Report only returns a single row of output instead of multiple pages of output

I am looking to build a report in SSRS that has 3 columns, similar to the data below.
The query behind the report returns a single row for every field in the 3 columns.
The report returns 20 rows for example, with 50 fields each pertaining to the elements outlined below.
However when I view the report I only see the first rows output. I need to create the elements in very particular positions and don't want to use tables and concatenate fields. I need a flat report 8.5 x 11 with elements in specific positions.
How do I fix the grouping so the report returns every row sent from the query.
There is no table, no groups. Only a single page with elements on it.
Please advise.

Repeat entire Table data on multiple pages - SSRS

I currently building one report in which the same data has to be repeated on multiple pages.
- So, I have a field (Quantity) based on which I have to decide the times' data has to be displayed. For example, if the quantity is 5, the report has to print 5 pages with each page printing the same data. This is usually used when we print Shipment labels.
Is it possible to achive this in SSRS. Grouping would have solved my issue but since the value that I have is a scalar, I am not sure if it is possible.
Any inputs/Suggestions.
You can repeat contents on multiple pages by placing it all inside a grouped cell. See my answer here for more detailed instructions on that. For this particular case, you would want to have a column in your dataset that has the desired quantity.
One way to do this would be to cross join your query with a subquery that has your desired quantity. Then you can group by the new column and get the same data within every instance of it.

2 Page Report per record

I am having issues recreating an old report with SSRS. The original report would pull about 5-6 records from SQL, and then have a corresponding 2 page report for each record. This would be easy if I could just create an individual report for each record, which is possible, but is not what is being asked of me.
I need to be able to have 2 pages for each record I return. For example:
Page 1 will have a different table than page 2 for the same record and will be view-able as:
record 1:
page 1,2
record 2:
page 3,4
record 3:
page 5,6
No grouping is necessary for records. They just need multiple pages to repeat.
Someone I work with suggested a sub-report, but I'm not sure how that would work.
I use the report builder to create reports.
Thanks for any help. I will gladly clarify if necessary.
The nature of SSRS is that it grows based on whatever data is available when it is run. In order to force it to take up two pages per record, you'll need to set a placeholder. One way to do that is to have a table that spans two pages. Make sure the "CanShrink" property is set to False for the cells in at least one of the columns. You can remove the borders to make the column invisible if the length of the report varies.
Next, you can add columns as needed for your other report data. It doesn't really matter if you want to use a subreport or not, either way will work.

SSRS - Why is my table duplicating rows?

I am creating a report in SSRS. I have a table showing the date and time the report was generated, it's a single column table with one expression =Now() and is not linked to any datasets.
The trouble I am having is that it returns 77 rows all with the exact same date. My main dataset returns 77 rows in a different table but that table is not linked to this one in any way.
How can I stop it from returning so many rows? The reason I'm using a table and not a text box is because I want it to have the same look and feel as other data presented in my report i.e. Header Row and Data Presented underneath. There are a few tables that use the same approach and all of them are returning duplicate rows. As you can see from the image below, I just need the first row from each table.
EDIT: Looks like SSRS automatically references a dataset when I insert a new table. When I change the table properties dataset to none it returns an error. Is there a way around this? I don't want data from any dataset, just want to use an simple expression =now()
As you've seen, a Tablix requires a DataSet, and when you only have one DataSet in a report it will link to this DataSet automatically in some circumstances.
You've mentioned you don't want to use Textboxes, but this does seem like the easiest option.
If you're set on using a Tablix for ease of formatting, to prevent any repeating rows just delete the Details group that gets set up by default when you create a Table through the designer:
This leaves a table with one header row only - you can add more header rows as required:
The result is a table that will only display the header rows once, i.e. no repeating rows.
You can add Summary data or individual fields from the DataSet to these header rows; if no aggregation is specified it will just take the first row by default.

Visual Studio Reporting Service Reports 2008

I am trying to generate a report that has 2 lines per record(or row) returned by the query. Simply the first row will hold certain fields but before it returns the next row/record..it generates a subrow as you may call it that holds an additional field. Is this possible? I have another idea of doing this and it would be to just add the extra field on the end of the row and wrap the row to fit on the page thus making it appear 2 lines per record/row returned.
I'm a total noob when it comes to using tablix and these reports so details would be great!
In the report designer, right-click on the detail row header (the gray area, should have 3 horizontal lines), and select Insert Row -> Inside Group (either above or below, depending on where you want the row).
This will add a new row to the current group, with the current group being your detail rows. You can then add fields and text to the second row, and both will show up for each dataset record when the report is run.