How to fit frame to available space in page in JasperSoft Studio/JasperReports? - jasper-reports

I have designed a report using JasperSoft and filling it with it JasperReports.
The structure is simple, a header band, a detail band and a footer band.
The problem is in the detail band.
Inside the detail band, there is a table, populated with data from my Java App and when the table ends, I have to insert a frame section that I call "Comments".
Ok, the problem is the next:
Inside the comments frame, i have 2 frames and between them, I want a blank area to separate them. Depending on the table size, I want that blank space to fit the page, if there's more available space in the page, then the blank gap has to grow to fit.
Also, I need a fixed size for that frames.
When there's no space, I need a page break and maximize the gap size in order to fit the entire page.
I append a image to show the schema.
Thanks in advance.
enter image description here

Related

Is there a way to tell iText 5 to allow page break in the middle of a table cell?

We are using iText 5.13. I am creating a form document using a series of tables, each with a single column, to place one after the other to create the form boxes. In these cells are varying sizes of Paragraphs. When viewing the PDF, if the next table won't fit on the page, we have a large blank space on the bottom half of the page, and the table starts on the next page. If the cell is large enough such that it won't fit on one page, the engine will allow it to page break in the middle of the cell, which is exactly what I want for the cells to do all the time, not just when there is a large cell. I have tried setting table.keepTogether(false), but does not help.
Here is snapshot of the page break occurring too soon at the end of a table, when the next table is too big to fit on the rest of the page
Found the solution over at iText KB: table.setSplitLate(false); answer

How to prevent image in Crystal Reports 10 from being cut off to the second page

I'm making a Crystal Reports template. The template has some text in the header and then it has an image. If the text has a few lines, the image is normal and allowed in the first page, but if the text has many lines the image will be cut off in the first page and second page. Could it have ways to prevent the image from being cut off to the second page, such as auto-rescaling the image size?
I tried can grow and other settings in Crystal Reports 10, but it didn't work.
Report Design Picture
Make sure Keep Object Together in the properties of the image is checked. This will prevent CR to split your image across pages.
Best option in this case would be Create another section and place the image in that section instead of text and image in same section, This will force the image to go to another page if it doens't fit in first page.
For E.g, if data in report header, create one more section Report Header a and place text in that section and Report Header b and place image in this section

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

detail band spanning multiple pages

I am using ireports 5.0.1. I have a detail band which is very large (height 2313). After exporting to PDF , the generated file is not suitable for printing . How to span the band over multiple pages? (just 2 pages will do)
A band's maximum height is the height of the page without top and bottom margin, a split of a single band over multiple pages is not possible. Depending on your report design you might add a second detail band and move items for the second page there. In order to enforce a page break you can utilize a page break element.

Hidding the footer on first or last page keep footer space

Hidding the footer on first or last page keep footer space
If you hide the footer on the first or last page, SSRS keep the space for the header but it hide the content.how can i use this space because it effecting my design(some records of table are viewed separately in next page)
thanks in advance
Normally when you hide the Header/Footer the space will be available for you to use
Usually in Report Properties you can set the margins top,bottom to suit your requirements,
and it may be that Report Body and margins need some adjustment.
If all your report elements are within the limits [Width, Height] of Report Body then your report should render fine.