Jasper Reports - Subreport - Blank page between title and detail bands - jasper-reports

I'm working on a subreport in Jasper Reports and its detail can get rather large, more than a page in length on its own. What I'm having trouble doing is getting it to print right after the summary paragraph. It always leaves a blank page in between the title band and the detail band and then prints. When it then prints, it prints on more than a page. It's under this scenario (detail table/band larger than one page) that it leaves the unnecessary blank buffer page.
Here's a picture of the report that gets generated, to help explain what's happening. (Sorry about the blacked out text, I don't want to get in trouble for divulging anything).
Here is a picture of the band layout for the subreport:
Root Question:
How can I make it so that the detail prints as close as possible to the summary paragraph? Instead of deciding to skip the current page, leave an additional blank page, and then print.
Thank you for your time.

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 :

Crystal Reports blank page "standard" solution not working

Having an annoying problem with a report. It's a fairly simple report with 1 group and multiple detail sections (each detail section contains a subreport).
Sometimes the data makes the groupfooter start just on the next page, printing an empty page with just the groupheader and pagefooter.
The "standard" solution of adding Not OnLastRecord formula in the groupfooters New Page After option doesn't work.
I've been trying with Suppress, Hide, Keep Together options all over the report, but nothing seems to work.
Anybody have other suggestions?
I'm using Crystal Report in Visual Studio (not the stand alone)
What is the result you want to achieve?
The content doesn't fit the page, I suppose.
GroupHeader + Content + GroupFooter can't be printed in a single page, so there's a page with just GroupHeader or one with GroupFooter only.
If you want to divide subreport between pages
I suppose that you have to look at Details Section, removing Keep Together clause to Details, to SubReport and inside SubReport so that details section will be divided, if possible, in the page with GroupHeader and in the page with GroupFooter
If you want GroupHeader and GroupFooter to be printed on any page, also if Subereport doesn't fit
GroupHeader can be repeated on every page ("repeat group footer on each page" in Group Expert), GroupFooter can't.. someone suggest to use Page Footer instead.

How to move up 2nd page margin to top in Crystal Report Cross tab

I build report by using cross tab in crystal report in the first page i have title page that take area about 1/4 of the page consist with logo and report name and filter detail So on the second page it shown up the same position as the first page something that I want is to remove the report header section and move up the page header section and detail section to top on the 2nd page Thanks you for answer and i want to know Is this need to do ?? because some aspect of user tell that Its' okay don't move 2nd page up its should be like this same position same line its easy to read and compare the pages some aspect think that it's lost the area of the head of page 2 it's useless what should I do from here
To cojimarmiami,
i tried your suggestion formula but it' doesn't work when i preview it show just a page in horizantal by the vertical space separate it for 2 Block (not page) and when i printed its' come out 2 pages in A4 paper What should i do for the next step Thank you
you will have to place your logo, report name and filter on Page Header, then go to that Section Expert and place this formula on Suppress pagenumber <> 1. That is going to suppress that section if your are not on the first page.

jasper reports issues with fixed page height

I have a report with dynamic subreports and a page footer that should stick to the bottom of the page. The problem is that the text is dynamic and some pages have more text, some other pages have less text. When the page has less text it pulls the page footer up and when the page has more text, it pushes the page footer down. I have specified the page height property pageHeight and I have placed my stuff in a band in pageFooter. I have tried using the background instead of pageFooter and this actually forces the page to have a constant height and it works fine except a tiny little detail that kills the entire solution. In some reports it prints the header of the table alone at the end of the page like in this image:
If I use the pageFooter the header of the table does not appear alone. It appears only when I use background. It seems to me as if when I force the page to the maximum height, it causes the head of the table to appear alone. The report is huge. It spans tens of xml files. I don't think it is a good idea to post it. And the xml is full of java code. I will post portions of it upon request, if that helps you get a better idea. I hope I explained the issue clear enough. Any ideas?
Thank you in advance,
Corneliu

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.