Detail sections not printing if previous section fills entire page - crystal-reports

My report has three detail sections. The first 2 contain sub reports. If either of the first two sections expands to be exactly large enough to fill the page, the following detail sections don't print at all.
I would expect a page break to be triggered and the following sections be printed on the next page, but this doesn't happen if it's nearly the size of the whole page, or greater. How can I fix this?

Related

Display 4 pages of a sub-report in Crystal Reports

I would like to display only 4 pages on my Crystal report, however, I am getting an extra empty page. I cannot pin the reason to what sounds like a trivial issue.
My report has the following:
- No fields in the main report - This is not avoidable.
- One sub-report.
- In order to have the sub-report header repeat I followed this method described here. (I just do not understand what the formula means and whether this is the reason for the extra page but I am getting a header as I require).
I am suppressing the pages in both the report and sub-report as follows: in the suppress I am using
if pagenumber>4 then true;
I tried to put in all my sections
Not(onLastRecord)
I am simply lost. All I need to do is print 4 pages only regardless how long the report/sub-report is. I also need the sub-report to have a repeating header. Thanks.
Try to reduce the size:
-If possible supress group and report footers
-Right Click on each section you can and select "Fit Section"
-Change the color of some sections so you can see if any responsible for the extra page
-Maybe the paper is set to letter ? : Go Design - Page Setup, set A4 or you can also try no printer to see if something changes ( this last one will change the format of your fields so backup before)
If you have any footer sections that are not being used, try suppressing them. This will remove empty white space that is added at the end of the report. Another option is to adjust the size of your top and bottom margins, providing there are no design conflicts in doing so.
If you have any white space at the bottom of the sections that appear at the end of the report you could also reduce the height of that section to remove the white space.

How to remove white space between details sections which contain subreports in Crystal Reports

In my main report preview and exported PDF file of it as well I have a unused white space between details sections (the section with the grid starts from next page) as shown in the following image. Off course I want that white space to be removed.
I tried with unchecking the "Can Grow" and "Keep Together" in the sections which contains grid subreport (as well as in the subreport itself), but unfortunately I have no result. In case when I have for example 3 rows in the grid section, the section starts right under the chart section above, but in case when it must go to the next page, it makes that white space.
And to mention this, in both subereports in theirs sections, I have suppressed all the unnecessary sections, basically I am showing only the ones with the data.
Thanks.
I solved this. I checked "Can Grow", and deselect the Keep Object together in the subreport.
And now the grid works fine! Starts at the end on the graph, and continues on to the next page. Here is what I done:

Jasper Hiding Page Break on Specific Pages

Hi I want a page break that goes after each group except for the last group. Currently my page breaks separates all the groups nicely, but I would like the last group to be connected to the last page. The page break separates my last page footer, leaving a huge amount of space on the last page. Is there any way to do this?
I'm thinking of hiding the last page break but I'm unsure of how to do it.
Attempts to do a put into $P{REPORT_PARAMATERS_MAP} within the print when expression band of the summary band have been unsuccessful.
I tried placing the following into the 'print when expression' band of the summary band:
new Boolean($P{REPORT_PARAMETERS_MAP}.put("LastPageNumber",new Integer($V{PAGE_NUMBER}.intValue()-1)).equals("dummyPrintWhen"))
And using this on 'print when expression' of the break:
new Boolean(!$V{PAGE_NUMBER}.equals($P{REPORT_PARAMETERS_MAP}.get("LastPageNumber")))
But it's not working the way I want. It still gives me the last page footer all by itself on another page while still leaving a large amount of space on the previous page.
By taking out "!" on the break's 'print when expression', the breaks don't happen and I get my last page footer on a page all by itself as there is no more space on the previous page.
----------------------------EDIT--------------------------------
Printing $P{REPORT_PARAMETERS_MAP}.get("LastPageNumber") for every page
gives me null.
----------------------------EDIT--------------------------------
What am I doing wrong?
I'm currently using iReport 3.0.0
What if you use ?
new Boolean(new Boolean($V{PAGE_NUMBER}.equals($P{REPORT_PARAMETERS_MAP}.get("LastPageNumber")))==false)
I think what I'm trying to do might not be possible simply because the last page number can only be compiled at the end of the report, while the page breaks happen as the report is compiled.
I think this can be confirmed by nobody answering the question on this page: http://www.coderanch.com/t/579950/open-source/Jasper-report-store-total-number

How do i have the report footer ONLY appear on last page in Reporting Services?

I have a report footer that i want to appear on the last page only of my report. I have the option selected that says 'Print on Last Page' as True. I also have the option to print on first page as false. However, when i have an invoice say 4 pages long, the footer shows up on all the last three pages.
thank you for your suggestions.
You could try placing the content at the end of your report, making sure it is outside of any grouping object (list, matrix, table).
If the content is at the end of the report, it will always be on the last page and only the last page. No footer or special group is needed.
You can position it on the last page by leaving some empty space between the content you want at the end and the rest of the report. Check your report height and width settings.
Good luck.

Vertical line problem in the detail section of Crystal report

I have a little problem with the vertical lines in Detail section. In detail section at the end there is horizontal line. Also I have Report Footer section which displays total number of records. I suppressed Page Footer section.
I would like end all the vertical lines to the last line of the records not to extend beyond the "Total"(Report Footer).
It works fine if everything on the same page. The problem starts when the last line of the detail is on the first page and the "Total" wouldn't fit on the first page. It displays "Total" on the second page and it draws vertical lines to the end of the page.
Thanks for any suggestion.
I faced the same problem recently and resolved it just now. Just want to share what I did to resolve this problem for those who are stuck in this CR dilemma :).
Create a detail section below the detail section with the vertical lines then suppress it.
That's it! worked like a charm. Hope this helps.
Usually Crystal displays lines properly, when they start and end in
matching group sections (1st header - 1st footer). If they start in
page header and end in details for example, then result is often
undefined. Or from detail to page footer - result is undefined again.
An old question but thought i would add my findings. Thanks to #Arvo explanation above this led me to figure out why i had this issue. A report i was amending had a line object about 2-3 pixels over the boundary of the detail and header section, this caused the line to repeat on every single detail section regardless of intervening suppressed sections (there where no groupings).
Moving the line object so it didnt cross the boundary meant it only appeared in the detail sections it went over :)
Do your vertical lines start and end in matching sections? Dou you have any groups defined?
Usually Crystal displays lines properly, when they start and end in matching group sections (1st header - 1st footer). If they start in page header and end in details for example, then result is often undefined. Or from detail to page footer - result is undefined again.