detail band spanning multiple pages - jasper-reports

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.

Related

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

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

Crystal reports lines not showing

I have a crystal report for an invoice that is formatted with some horizontal and vertical lines. The vertical lines cut across a number of group and detail sections. Crystal reports is version 13, and I am using it in the designer in Visual Studio 2013.
I have two problems
1) The vertical lines only extend to the beginning of the first detail section on the first page. On subsequent pages they display all the way down the screen.
2) For the second and last row of one of my groups, the vertical lines don't display at all.
I have tried removing the lines and re-adding them, and this has made no difference. I have also tried changing ExtendToBottomOfSection to true for the lines, but this doesn't seem to make any difference. Any other suggestions?
The key thing with lines and boxes in Crystal Reports is the section/area they start in and the section/area they end in. These areas always go in a specific order: Report Header, Page Header, Group Headers, Details, Group Footers, Report Footer, Page Footer.
Depending on the height of the areas, some sections may be bumped to the next page. Most issues I see with lines and boxes are due to them not starting/ending in the right section to give the desired effect on every page, even pages where some sections may be omitted.
If you want lines to span the whole page, they should start at the top of the Page Header area and end in the bottom of the Page Footer.
What I think you're looking for is a slight variation on this (I'm guessing based on your problem description): to run the line down the entire page, but not actually have it appear in the page header/footer. In this case, you will want the line to start at the bottom of the page header, and end at the top of the page footer. This will give the effect of the line covering the page (but not the header/footer), regardless of how many records appear on the page.
These properties are easiest to control from Design view (where it's easier to distinguish section boundaries), or from the properties dialog (where you can make the top/bottom values exact).
Hope this helps!

How to hide footer in subreport in jasper

I have a subreport and page footer in main report, and i need to hide page footer for the subreport part. Is there any way to achieve this?
Details:
I have main report. It has several detail bands and a page footer. One of detail bands (Detail 4) is filled with data returned from query. After this band goes "Detail 5" band that has only subreport in it, which is the last detail band. My subreport contains several pages of text. I need page footer from my main report not to be shown in this pages. So what I need is: page footer should be applied to pages, that are generated in detail bands 1-4, but not "Detail 5" .
Since the size of your details bands vary (and quite possibly the size of your subreport as well) you cannot be certain about the page numbers that the pages of your sub report will appear on. But that would be necessary knowledge to create a proper print when expression for the footer band to achieve the behavior you want.
In other words: it's most likely not possible to do that.

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.

Can you determine the number of pages a Crystal Report will print to?

A 3rd party application prints letters using Crystal Reports.
Our in-house style requires a footer graphic (approx 1.5 inches deep) at the bottom of the first page in any letter sent out.
Is there any way to determine the cut off point for the report detail sections that will always print the footer on the first page?
Some detail sections are either/or, some are optional and some are required.
There doesn't seem to be a mechanism for calculating the page length used if the maximum section length is chosen.
Is this a peculiarity of the way Crystal works or am I missing something?
You can put the graphic in the page footer. Add a suppress formula to the page footer
pagenumber <> 1
If you need a page footer for the other pages, you can add another page footer section below the first.