Access 2010: Report Prints Three Extra Pages - ms-access

In Access 2010, I have a button that launches a macro that prints a report. Button->Macro->Report. The report is only on one page and is 8.1 in width. It will not go to 8.
I have deleted the header and footers and all that is left is the detail portion. It is contained on one page, but it prints 3 extra pages. I have been scouring Google and messing with the report properties, but nothing has stopped it from printing 3 extra pages.
The page margins are set at .25" all around.

I'm not sure what you mean when you say you "deleted" the header and footers. Under design view, set the "visible" property for the headers/footers to "no" to see what is causing the issue. Often it is the footers that cause weird page breaks. If you find out that a footer is the culprit, you could make an additional group level with only a footer and copy all the data in either the page or report footer into that other footer. I usually have it group on expression "=1" and set the report footer "visible" to "no".

Related

create margins after page break within tablix

Im working on a Report with a coverpage. So the body has no margins and the full page is useable.
The report also has no Headers or footers because the coverpage must cover the whole page.
For tablix i set a row with empty textboxes to get white space between the page border and the tablix. But if a tablix gets so much data that 1 site is not enough, the data will go to the very edge of the page and start at the very top of the new page.
How can i enter space at these points so data isnt at the edge of the page?
I was unable to find a method that worked in this case.
So the BackEnd dev requested for me to split the two reports into the Coverpage and visual data area. That way i can have footers and my colleague simply merges both reports back together when its being requested.

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 - Show/Hide group-row based on page number

I need to show/hide a group-header-row based on page number. No way I could access the page number inside the group to add an expression based on the page number. All I need is to show a group-header-row only from second page (hide the row in first page).
I'm using Visual Studio 2015, SSRS 2016.
Everything works fine except hiding the Group Header 2 from Page 1.
Generally the build in functions =Globals!OverallPageNumber and Globals!OverallTotalPages can only be used in page header and page footer. This might be caused, that the processing of page header and footer are different from the body area.
There is also no workaround.
You cant store the value of =Globals!OverallPageNumber in a report variable, you cant reference with ReportItems!PageNumber.Value and you cant put the function into the code section.
So what you can do is, copy the tablix from the first page also into the second page and hide the group header on the copied tablix on the second page.

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.

How to get rid of the extra blank pages in PDF version of SSRS report?

I tried creating a report using a sub report. When I exported it to PDF I have noticed that there are extra blank pages in the PDF.
I made it clear that body width + left margin+ right margin <= report width.
But still it gives the blank page. sub report as individual working great.
Also I am calling the sub report from with in a list in main report.
I tried to set up a page break after list . but it looks like its not working.
I want the next list displayed on a new page.
How do I achieve these.
There is no single property available for this in SSRS. You have to check for couple of settings
In report properties, set "ConsumeContainerWhitespace" to TRUE
In tablix properties, set page braek location to NONE
IF still the issue persists, check alignment/margin of objects like rectangle,tablix etc.
A few things to look for:
Check the "parent" and subreport for any controls that are in your margins (or may grow into the margins). Setting the width doesn't necessarily force the controls to that width.
check for any controls that overlap. I've had strange things happen because of that (especially in SSRS 2005).
checking the "Print Layout" while previewing helps find most issues like this at design time (before exporting to PDF).
For the hard break with your list not sure what is goofy there. I usually use a table with groups and set the page breaks on the appropriate group. Depends on the data though.
HTH
Check top and Bottom margins, for me reducing.1 of bottom margin solved the issue.
In my case (with Report Builder 2017) the solution to get rid of a blank extra-page was to reduce the width of the body.
The body can be selected by clicking on a free space in the report on the same height than the Tablix is located.
You then get the "Body properties" shown in which you can reduce the size.
The size of the body should be less than page width - left margin - right margin.
For me it was a problem with the sub report's width which caused extra blank pages in the exported version. Reducing the width solved the issue.
If still someone having an issue with blank pages in PDF, just increase the width of the main report to a few inches. Keep reducing to an optimum value by checking the report. No need to change anything else.
For me when I increase the width for pagesize report from 21 to 23 cm,
It was not generating extra empty page. Because of few elements total
size of my report's element was greater than 21 and less than 23, that
is why I changed to 23cm and works for me.
In my case I have only one page and I was working with .rdl file.
When exporting to pdf and the report contains a sub report where the sub report is grouped on an item from parent report.
Do not use the list control in the parent report to group sub report. Use the table control.
The list control will cause blank pages while the table control does not