Last Page Blank in Crystal Report - crystal-reports

I have a report with a group.My report has a blank page at the end of the report. My report is only Two page but it prints a blank one page at last.when i export to PDF, i will get this blank page also. Both the Page Footer and Report Footer have a checkmark in the "Suppress(No-Drill-Down)" but it is greyed out. I was going to add a formula in x-2 'pagenumber = TotalPageCount' but I can't get to it. Is there anything else that I need to check that could be causing this?

Try the fix detailed here
You should try the instructions under
If the "New Page After" checkbox is marked for Group Footer #1, conditionally suppress it for the last page.
On your group:
-Section Expert - New Page After (click X+2 button)
-Set this formula Not(OnLastRecord)
If it doesn't work, please post a screenshot of your layout if you can.

Related

How to print only the first page in Crystal Report?

I have a crystal report and would like to print only the first page regardless of the number of pages. That is if the report have five pages, i want only the first page to be returned.
I thought i could achieved that by section expert, however, my report have few sub reports. Please how to i return only one page regardless of the report size. Any help would be appreciated.
Choose Section Expert
For very section set a Suppress formula
[click X-2 button in Suppress (no drill-down) line]
type this frmula PageNumber >1
that means suppress this section if page number is greater than one.
That's all.
I know this late but it may be useful for someone in future by using Emanuele Greco above answer it is showing last page as blank to avoid last page as blank
Right Click on the Report Footer and choose Hide.It works for me

How to hide page header in crystal report

I have created a crystal report to show the English Exam marks for students and walk-ins for my project. The information is shown in two sub reports(1 for students and other for walk-ins). There is no information to show on the page header or the report footer while on page footer i display the page number, print date and print time. Now I wanted to hide/suppress the page header(since it contains no information). I tried suppress blank sections and suppress(No-Drill Down). But both these does not do the desired. Now the Page Number 1 has no information and is blank. If we take a print out, it is a waste of 1st page. Please provide me some help.
Thanks
If page header has no information then instead of using supress blank section directly supress the page header by right click on page header
dear if your header have text then use the formula field for the header
go to the toolbar and in the formula field create new formula like
if(condition) then
your header text
else
""
also take look to the following link Book
and if you want to suppress you header the also make it suppress by formula
right click on the header section and click on section expert and in the popup window write formal for the suppress same as above
:D

Hide report footer on second page in Crystal report?

I want to show report page footer on only first page and not on second page.I mean hide page footer on second page not suppress.Because of suppress I have facing space problem on second page.So, give me answer about these.
Depending on your version of Crystal Reports (I'm using CR 2008 Version 12.0.0) you can achieve this by doing the following:
Put your footer text in the page footer
Open the section expert and put WhilePrintingRecords; PageNumber > 1 in the Suppress Formula field.
Check "Suppress Blank Section"
Check "Clamp Page Footer"
That should only show the footer on the first page and eliminate blank spaces on subsequent pages.
Hope that helps,
Chris
if you checked "Clamp Page Footer", the second and last page's height will be cut to shrink!

CR2008 page footer insert then delete issue

Open a blank report in crystal 2008 and insert a new page footer section. Then delete said page footer section. When you look back in section expert the "print at bottom of page" is still greyed out yet now unchecked. This causes the report to only display the PF on the last page after the detail and report footer. Is there anyway to reset it? Has anyone ever encountered this before on any version of crystal?
Open a blank report in crystal 2008 and insert a new page footer section. Then delete said page footer section.
Firstly I am confused on why to insert a new page footer section and then delete it. If you are not intrested in a new page footer section then why are you inserting?
Page footer is displayed at the end of every page. If your report has only one page then you will see that page footer is displayed after the report footer, But if the report is spread across the multiple pages then you can see the page footer at the end of every page.
You could always try inserting a new page footer and suppressing the old one, hopefully it will default in to every page then.

Blank Page when "Print at Bottom of Page" is on and all sections on the blank page are suppressed

I'm using Crystal Reports Basic for Visual Studio 2008.
I have each item in a group printing on a separate page. There is a footer section which is set to Print at the Bottom of the Page. I am suppressing the page when its data is 0 by suppressing all sections with a formula.
The problem I have is that when the footer is set to bottom of the page, the suppressed page is printed as a blank page. When I turn off bottom of the page, and use NewPageBefore with the formula instead, the page is suppressed correctly, but when I turn on "bottom of the page", I get a blank page.
I have checked for unsuppressed sections, but they are all either suppressed with the checkbox or the formula.
I had this issue before, which took me quite a lot of time to find a workaround. Hopefully putting the answer here will save some time for others.
Whenever you enable "Print at Bottom of Page" for a section, make sure other sections that come after that (including Report Footer and Page Footer) are all suppressed, otherwise there will be an empty page printed at the end. Note that keeping them empty or ultimately narrow is not enough, they must be suppressed explicitly.
I had an empty report footer with a 0 height, and I thought it would take no space and will not cause an issue; but I was wrong. I had to explicitly suppress that footer to solve the issue.
If the sections coming after that are suppressed via a formula, make sure the formula is satisfied on the last record.
I am a complete novice here, but I had to build a report for work and figure out how to do this.
I had the same issue - but caused by two separate reasons. First, when I checked the 'page after' to keep each group on its own page, I had a blank page at the end. I simply added a formula 'Not OnLastRecord'.
Then, the second issue was the 'print footer at bottom of page' - I wanted each sub-group to start a new column at top of page. This also created a blank page at the end (if I turned off the 'print footer at bottom' the page disappeared). I followed Sina Irvanian's advide here and suppressed the footers that came after it. I only suppressed the ones that were blank since my page footer had content - this was sufficient.
Problem solved!
It sounds as though NewPageBefore is unconditionally checked on the footer section. If so, try unchecking it and checking NewPageAfter instead.
Alternatively, if a new page has to be begun before the footer section which is then printed at the bottom of the following page when the data is not 0, try unchecking the NewPageBefore option and instead enter the opposite of the conditional suppress formula in the conditional NewPageBefore formula - ie. data is not 0.