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

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.

Related

Crystal Report - Suppressing footer until last page - creates empty white space on other pages

I've made a new crystal report.
I have some terms and conditions and a place for signature on my report footer. I have managed to suppress my report footer to only show on last page, I have used this within Section Expert
TotalPageCount <> Pagenumber
It works well and only shows on last page however on all other pages other than last I now have a lot of blank space that I could re-utilize and in effect cut number of report pages. Can someone recommend a setting that I might be missing or piece of code to do that please.
Adding image for reference :

Removing footer in SAP Crystal Reports 2011

I am trying to set up a report to print an invoice with the company details as part of the PAGE footer.
I have also set up a terms and conditions section which I want printed after everything else and so have set it up as a REPORT footer.
This T & C page should NOT include the company information footer and should print on a SINGLE page.
I have set up a formula to suppress the page footer if the T&C's have been printed. This works and on other reports I have set up similarly, it does not push part of the T&C's on to a second page.
The problem I am having is that for this particular report the company information footer is several lines as opposed to a single line (as with the others) and so even though I suppress the footer on the T&C's Page, it still reserves that extra space where the footer would have gone and so pushes the end few lines of the T&C's to an additional page.
This probably happened before as well, but as the footers before had been a single line instead, there was still enough space to print the full T&C's on the page even after reserving the space for the footer.
Is there any way for me to suppress the footer without the space being reserved, or is even putting the suppressed footer in the 'background' so the rest of the T&C's can just print in front?
The client have specified a required font size and styling for the report so I cannot just reduce the size of the footer and/or the T&C's to solve the problem.
Right click on the section >> Section Expert >> check Suppress Blank Section, so if the section blank it will be suppressed and removing the footer extra empty space.

details section insert blank page on main report, started display record on second pages

i having problem in details section, my report will insert blank page to my first pages and will only display data started from second pages, below is setting for my details section
Section1(Report Header)
only suppress blank section is ticked
Section2(Page Header a)
only suppress blank section is ticked
PageHeaderSection2(Page Header b)
only suppress blank section is ticked
problem goes here
Section3 (Details)
only suppress blank section is ticked
the rest all is un-tick
If you are using any groups, check if you have "Keep together" checked and try to uncheck it and see if it helps. It should be in Section Expert and also in Change Group...
The length of one of your column values could be too long for your setup
The page header is suppressed, un-surpress the header.
Hope this helps!
I guess, you have expanded your fields, maybe the header or footer, screenshot may help, you need to make their sized small, sometimes when the header is too big, the details section starts from next page, or you can always play with the margins of the report.

Suppress section if details empty on page X - Crystal Reports

I've been working with Crystal Reports 2008 for a while now, and while I get the general gist of it, some things seem quite hard to do, especially because I don't know what tags and proper syntax is allowed within CR.
Anyway, my problem is as follows: I've been making an invoice layout, but sometimes the Details-section ends at a page, but the section containing the invoice summary (including the final price and such) is printed on the page after that. That also means the Details header is printed the next page, with nothing between the header and the summary.
Is it possible to conditionally suppress Page Header D when the Details section is null on the last page?
Trying something along the lines of
IF {Section Details} = "" AND pagenumber=TotalPageCount
THEN TRUE
ELSE FALSE
I'm sorry if I'm making no sense; there is a drastic lack of coffee around here.
Try just using the keyword OnLastRecord for your Page Header suppression formula. The only situation I'm not 100% sure about is when your last page only contains a single record (the last record)... it might still suppress the header in that situation, but I think it's probably OK.
Right click on the report page header you want to conditionally suppress.
Section Expert -> page Header -> Check the checkbox for Suppress and click on the formula button on right side against suppress in same section expert screen and in the formula..just write Onlastrecord AND NOT Onfirstrecord
Done !! This way, even if one record is there, the page header will show else it will get suppressed if no more rows are present on next page in the corresponding details section. you can have report footer or any summary following the details without any ugly page header and lines showing.
Apply the same Suppress formula to Report Footer Section also if you don't want report footer on the last page.
Thanks to Abhilash in this SAP Forum

Crystal Report - Last Page is blank

I have a crystal report which when generated has a last page that is blank except for the page footer (which indicates the current page, as well as the report title).
This only occurs when the data displayed on the second last page completely fills the page.
Would anyone have any ideas as to why this might be?
When you check the checkbox New Page After, you will see an icon just right to it. This icon represents Formula Workshop. Click this icon and type NOT OnLastRecord.
Save and close the window, you are good to test this and praise me for the rest of your lives :)
Instead of using the checkbox on the group footer, use a formula.
The one that I use is
not(OnLastRecord)
You have some (almost) empty group footer, which doesn't fit onto last (non-empty) page.
You have to set "New page after" option to some inner group footer section.
I know that this is an old question, but I just had a similar problem.
In my case the last page was printing the Page header and nothing else.
It turns out that the fix for me was to Right Click on the Report Footer (Which had no contents) and choose Hide.
So it was basically putting in a blank report footer and including the page header with it...
Hope this helps...
+1 to Arvo because what he said is probably the case. I'll expand on it a little.
More than likely you have a section that will not totally fit on the second to last page so it spills over to a new page.
Some options you may be able to use are in the section expert are "Keep Together" which keeps all the lines of the section together, either on the current page (if there is room) or on the next (if not), or the "Suppress Blank Section". You could also try to shrink the height of the section, but this will probably not work in all cases.
As Arvo also said, make sure that you do not have the "New Page After" flag set for any of the sections as this could cause it as well.
I was in the same situation and a good solution is to control the "New Page After" (in my case in the group footer) by a simple sentence, only doing it, when the current page is not the last.
With the option "New Page After" unchecked put a formula on it, clicking it's right formula button.
Code:
if(PageNumber = TotalPageCount) Then
True
else
False;
Saves a lot of troubles.
Greetings.
P.D. It's Crystal Syntax.
Evaluate if you need a report footer. If don't, be sure supress this section on report.
In addition, to checking what other have mentioned above, after creating a new Blank Report, under Page Setup, the paper size for me was A4 by default. When I changed it to Letter, I would get a second blank page in the Print Preview as well as when physically printing to letter paper. Presumably this is due to going over the page boundaries. I was able to reduce the magins, and make the report content fit on the page.
Or being on “Design” tab, under “Report Header” right click and select “Fit Section”
In my case, it was an image outside the paper design, i just align it and scaled it to fit my paper.
For some this might happen when there is an unused section like report footer. Suppress the section, it will be resolved.