SSRS Add Blank Page After Every Page - reporting-services

I have a requirement to insert a blank page after every page when an SSRS report is printed/exported to PDF, however this needs to be controlled via a parameter.
The reason for this requirement is that when the report is printed each page of data needs to be printed onto a separate piece of paper, however the majority of printers are set to double sided by default. Users aren't able to change the default setting except on each occasion they print. Unfortunately this double sided print setting isn't applied everywhere so there needs to be an ability to control the addition/removal of blank pages.
I am able to force a blank page to be created after every page by simply setting the size of the report bigger than the page size, though it isn't possible to control page width size via an expression.
My only thought is that this may be possible via custom code but don't really know where to start with that.

If you go to the table properties, you can set an expression for the Page Break Disabled property. This will allow you to disable / enable a page break based on a parameter. In this example I created a boolean parameter called Break. If its set the parameter to True, you will get an additional page after your table. Hope this can get you started!

Related

SSRS Report not correctly suppressing white space

I have seen some mind-binding situations with SSRS reports in my few years of using it, and I've been able to design around most issues and get it to do everything I've been asked to do.
But apparently, not something extremely simple!
I'm using Visual Studio 2019 version 16.7.2 with the Microsoft SQL Server Reporting Services Designers
version 15.0.19124.0 installed. There's no data bound to the report, this is just a simple design concept.
I have a report that has a static custom page size (in centimetres), interactive size and no margins (12.8 x 17.8cm).
The body size is deliberately set to make it a two page report (2 x the page height).
'ConsumeContainerWhiteSpace' on the report properties is set to true.
Page 1 has an image, consuming the entire space of Page 1 (size of 12.8 x 17.8), with a Text box placed near the bottom right of the image (overlaying it, but not exceeding the width or height of the page, and is set to not grow).
Page 2 is exactly the same, with the content starting where Page 2 would and should start (0, 17.8). However, the Page 2 content is set to hidden (hidden = true, on both the image and the textbox).
When previewed, the report renders two pages, one of which is blank.
If I take the Page 2 content textbox off, and preview it, the report renders as one page (as I need it to).
The same issue occurs if I replace the textbox with a Rectangle or Tablix (the two objects I really need to use in this report as well as the textbox located where it is) and set them to hidden.
Moving any of these objects to the top of Page 2, still results in the same behaviour.
It seems that certain objects, despite being hidden, have space allocated that can't be 'rolled up / truncated / shrunk'. Is this 'by design behaviour'?
Is there some form of magic-witch-craftery I'm missing here to get this to work, or simply something I'm not understanding... ?
Thanks for reading!
Note: So far I have tried the 'Switch to inches, then back to centimeters' solution mentioned in other posts along these lines, have varied 'Keep together' properties, checked 'CanGrow' and 'CanShrink' property changes - all of which have not helped find a solution.
The report body should be set at most wide enough to fit on your output page and long enough to hold all your report items. When you want different items to appear on a new page, put them in a container with a page break set either before or after (whichever is most appropriate). This can also be handled in a data driven manner using page breaks on table groups.
There is no requirement to have white space within your report design to 'fill up' the rest of the page on the rendered report.
If you want anything to appear at the bottom of the report, simply put it in the footer section. If you want specific things to appear at the bottom of the page of different heights on different pages, that is more of a challenge and will usually require some clever data driven spacers within the report body.

SSRS Report PDF image rendering issue

I am building a label report that requires the user to input a Bulk Order Number that will generate multiple labels. When viewed in preview mode and on the report server, images on the report for postage and company logo appear on every instance of a label (report page).
However when exported to PDF, these images only render on the first label (page)
I considered this may not be an issue, as the user could print from the report server when accessing the report. This isn't the case, as when trying to print, report server creates a PDF for you to print from. There are no other options regarding printing other than page size and orientation, a PDF seems to be the only method from which you can print from.
The images I use have the visibility controlled by parameters, so you can select 1st or 2nd class postage, and choose to have the logo visible.
Each image also has the RepeatWith property set to the Tablix that contains order and address details.
When exported to word, the labels all appear as desired with postage and/or logo images on each instance. This is a step I would like to avoid, as it would be much nicer to have the user print directly from the report server, even if this still requires a printer friendly PDF to be created.
I have attached am image to show PDF output.
Any ideas how I can get these images to render on each label (page)?
EDIT
Image of design page
Based on the design view image you posted, it looks like the only thing repeating is your tablix containing the address information. The SSRS RepeatWith property doesn't seem to work well with .pdf exports so the workaround for this would be to drop everything into a single cell on a list object and grouping using the Order_No to repeat everything. This should remove the need to mess with RepeatWith and give you the desired results.

SSRS Force blank pages

I have some SSRS reports that are generated via a subscription. They Get PDF'd and dropped on a share. The way the report was designed there is a potential for one record (or row if you will) to take up more than one page. I would like to know if it is possible to insert a blank page only after a single record/row takes up more than one page. This includes not showing any headers or footers on the blank page.
I've tried adding a text box with a form feed character to the end of the page, which did not work. I also tried creating a text box that is wider than the page (using an expression to control it's visibility) but that just forced the body of the report to be larger than the report's width which caused blank pages to show up everywhere.
Any help would be great.

SSRS Tablix Group Reset Page Number and Page Name not working when Exported to Word

I have a SSRS (.rdl) report with a tablix whose details group is set to put a page break between group items, reset the page number and set the page name (as per http://blogs.msdn.com/b/robertbruckner/archive/2010/04/25/report-design-reset-page-number-on-group.aspx).
This works correctly when rendered to HTML or as a PDF.
When rendered to Word the page numbers do not reset and the page name never changes (the page name is always the value set on the first page). The page breaks work as expected.
I have read (at https://msdn.microsoft.com/en-us/library/dd283105.aspx#ReportHeadersFooters) that complex expressions must be converted into runs of simple expressions in order to display correctly when exporting to Word. I have done this but the problem persists.
Is there any way to make the tablix group reset page number and page name functionality work when exporting to Word?
If not is there a way of achieving the same effect when exporting a report to Word from SSRS?
This is an older question but recently ran into this issue myself so it might help someone else.
There are a lot of examples out there that use casting in the examples for the page number display (CStr or ToString()). Whenever I invoked those methods, the counts would be off when exporting to Word (either doc or docx).
The only way I could get it to work is with three separate text boxes in the footer with these expressions:
=Globals!PageNumber
"of"
=Globals!TotalPages
Avoid the use of those other approaches. Three separate text boxes was the only way I could get this to work.

Single page display in HTML rendering : SSRS

I have a SSRS report. I am using grouping and my report is having n number of pages.
Is it possible to have the html display of the report in a single page with out page break and the exported version( pdf, excel) have the page break). Any idea. Please share some thoughts.
Thanks in advance
Anna
Short answer: Set the InteractiveHeight = 0
According to Microsoft:
Soft page breaks are calculated at run
time by the control. Although it is
not recommended, you can disable soft
page breaks by setting
InteractiveHeight to 0.
InteractiveHeight and InteractiveWidth
are used by the HTML rendering
extension to provide the equivalent of
PageHeight and PageWidth. Because the
HTML output format dynamically resizes
a report to accommodate drilldown,
drillthrough, and show/hide features,
the report server uses different
properties to support pagination on
dynamic pages.
EDIT Comment Answer:
In the Layout mode, bring up Properties panel. At the top of the Properties panel is a drop down to select which control's properties you are looking at, select Report You will then find “Interactive Size” that includes Interactive Height property.
What version of SSRS? 2008 lets you specify a different page size for interactive and regular paper (ie the html version will render different than say PDF).