We have developed hundreds of reports, which are all in production using
horizontal lines as well as nested sub-reports. We are not facing any
1. My first guess is that you are using
a) positionType="FixRelativeToTop" for all ur reportElements.
b) isStretchWithOverflow="true" for some of ur textElements.
When JasperReports finds that some of ur data is wider than that can fit
in the width of the text element it will automatically stretch the field
downwards. The exact pixels stretched depends on the font used, content
itself, and line spacing used.
When data above the line stretches, it typically overwrites the line
itself causing the line to be printed 'partial'.
2. Coming to sub reports, which band r u using to place ur sub report?
We typically place the subreport in a group. I.e.,
<group name=... >
<groupExpression> .. </groupExpression>
<band height="0" isSplitAlloweed="true"> </band>
3. Finally, try using iReport to design ur report instead of hand
coding ur XML. It should generate most of the typical attributes properly.
--- Original Message ---
I have posted several questions over the past couple of weeks, with
one response total, that helped me a lot. I even posted a fix to a
bug that crops up in several places, with no response at all.
Right now, I am struggling with:
1. Getting horizontal lines to print reliably at the end of a detail
band, and at the bottom of a page. I sort of fixed it by defining
rectangles instead of lines, but that gives me a double line between
detail items. (already posted that one).
2. I am currently trying to figure out subreports. I have a
pageheader that I can see getting filled, but it never displays, and
subreports that partially print.
The worst problem is the severe lack of documentation. I spend a lot
of time plowing through the source...enlightening, but not what I am
getting paid for.