SSRS Export to PDF Footer Print on last page Issue - pdf

Hi I have been working with SSRS for a very long time and this is the first time I have ever seen anything like this so I thought I would post it out there and see if anyone else had this issue and how they solved it, first some background on my environment.
Windows Version: Windows 7 Enterprise
SSRS Version: SSRS 2008 R2
The issue is as follows, I have a report where on the footer I have it set to print on the last page only. If the report is one page or 2 pages long this works fine, only printing the footer info at the bottom of the fist page is one page and the bottom of the 2nd page if two. The problem is when the page is lager then 2 pages, I do not get the footer on the first page as expected however each page after has the footer being displayed. I am really stumped on this one and checked my setting and do not see anything that catches my eye after staring at it for a while now. Thanks in advance for suggestions and help.
Mike

What I did to work around this weird behaviour, I have put all my element of the footer in a rectangle box and added a visibility condition "=Globals!PageNumber<>Globals!TotalPages" on this box. In the footer properties I have checked the box On Last page.
I works Well.

I think the property PrintOnLastPage is behaving different from what you may have expected: it's rather an opt-out mechanism than opt-in. From your question it seems you're expecting this property to behave as if it is was called Print *Only* OnLastPage instead of PrintOnLastPage.
You cannot set a footer to be printed on the last page only.
You can only set it to be printed on the last page, yes or no.
I suspect the reason you're thrown off is because you may have also set PrintOnFirstPage to false. With 2 pages that the report is behaving as if it only shows the footer on the last page. For a report with 3 pages it will however show the footer on page 2 and 3, for a 4-page-report it will show the footer on 2/3/4 and so on.
To sum things up:
| OnFirstPage = True | OnFirstPage = False
-------------------|------------------------|----------------------
OnLastPage = True | footer everywhere | footer on all pages
| | except first
-------------------|------------------------|----------------------
OnLastPage = False | footer on all pages | footer on all pages
| except last | except first and last
Refer to the MSDN pages for PrintOnFirstPage and PrintOnLastPage for more details.

Related

Exporting the SSRS Report in pdf format is having blank page issues

In SSRS Report 2016, I have 2 tablixes. The 2nd tablix contains only 4 columns.
When I preview the report, It comes perfectly in one page but when I export the report in PDF format or click on the Print Layout button in the report, the whole 2nd table/tablix moves to the next page.
In my case, the sum (Body Width + Left margin + Right margin) is less than the resulting page width. I set keep_together property to false but the 2nd table keeps rendering on the new page. If the 2nd table has less content then it displays below the first table on the same page and if the content is a little bit large then the whole table shifted to the next page and if the content is too big then it starts displays on the 1st page below the first table on the same page and continues on next pages with the remaining content. All the thing is happening when I am exporting report in PDF format, not on report preview.
Any solution for this?
Do you have dynamic col grouping or hidden textboxes ? in this case you need to make sure that when all the col visible on the reports it must have sum of width and margins less than the reports width.
Cross check the report width from properties window sometimes it contains white spaces because of which this happens.
Check whether you have added a page break after the tablix. If you did, and if there is nothing else to show after the tablix, then it will display blank on the next page.
Another possible reason that may bring blank page is that there exists large white space between tablix and page footer.
Please try these points once. Hope it resolve your issue.

Bi Publisher date format not working in RTF template

I am using xdoxslt:sysdate('DD-Mon-YY') at the bottom of report in footer section.
whenever report runs - it generates around 5-8 pages as per data and in every page at the footer i want see sysdate.
At 1st page date comes fine like 15-Sep-17 but at 2nd page it is coming incorrect 12/02/7.
Did anyone faced this issue. Please help.
There's a built in word/rtf function for the date that you could use.
Ribbon -> Insert -> Date & Time
There's also a function to have a different footer on first page. Make sure you don't have that checked.
When in the footer, should show "Design" in the ribbon, and in the Options, there's a "Different First Page"

SSRS 2008 how to get rid of white space from page breaks when parameters hidden?

Using SSRS 2008, I have created a report with multiple graphs and have separated each graph onto a separate page by adding page breaks at the end of each graph. The report runs ok, however if I add a parameter which hides a graph, an empty page in the middle of the report will be produced as a result. Im assuming that this is due to the page break that is still happening.
An example,
Page 1 - Graph 1
Page 2 - Graph 2
Page 3 - Graph 3
If I hide graph 2 using a parameter, I will get
Page 1 - Graph 1
Page 2 - Empty page with white space
Page 3 - Graph 3
However what I want is
Page 1 - Graph 1
Page 2 - Graph 3
I have tried adding in conditional statements to the disable property of the page break for each graph, this doesn't work. I have also tried setting the page parameter ConsumeContainerWhiteSpace to true as well
Does anyone have any ideas on how to fix this?

SSRS Report Builder - Only Show Header On First Page (With Page Numbers)

So I am running into the problem where my report header is being displayed on every page, but I only want to display it on the first page. The solution that people on this forum have given is to just put the header in the main content. The problem with this is that my header shows the page number + total pages (i.e. Page 1 of 3 pages). I cannot move my header to the body because I will lose access the page numbers. For some reason, Report Builder will only allow you to have access to the page numbers via the header. Does anyone have any solution to this problem?
Write an expression to hide the textboxes that hold the header information.
The expression would look like this:
=iif(Globals!PageNumber = 1, FALSE, TRUE)
To get to the expression property:
right-click text box >> text box properties >> visibility >> select "Show or hide based on expression" >> insert expression above
cheers
I had the same issue, where I only wanted the header to show on the first page. The solution I came up with was to stick all of my objects from the header into a rectangle, so it was now acting as a container. I then placed that container into the body. In the report properties, in the code section, I borrowed from this post Access Page number in report body In SSRS to create functions, which would allow me to pull the page numbers into the body section. Then in my rectangle/container, I set the visibility property to =code.PageNumber>1. I hope this helps!
I did this, just to make it easier the two functions you want to add to the Report that were linked above are,...
Function PageNumber() As String
Return Me.Report.Globals!PageNumber
End Function
Function TotalPages() As String
Return Me.Report.Globals!TotalPages
End Function

How to Fix the size of crystal report

I am developing vb.net application using VS2008. in that I am having bill module in that i have designed the report by fixing boundry with (hieght 8" & width 6"). ut problem is that when data item is greater than 5 items report gets extended and footer part gets printed on other page that should not be happen.
Is there any way to print some items on 1 page with complete bill details and remaining deta items on other bill with same format
please help me to do this.
Ya5,u can do it with section expert in paging option tab there is two way page after or visible records according u can set yur page margin in page setup option and page header and f00ter option(bill details) which u have to print on other page. .