I have a JasperReports template, with a filled detail band.
If I run the report, I have a page count of 27 (27 detail rows)
I want that detail row number 12 begins with a new page, so I have to insert a pagebreak after pagecount 11.
But I cannot find the element "pagebreak" - What is it called in Jasper?
The 2nd question:
Is it also possible to modify the format (font, size,....) of each detail-row?
For example: pagecount 1 - detail row is printed in sansSerif font size 10, pagecount 2 - detail row is printed in Serif font size 12 (bold) and so on.....
The 3rd question:
Is it possible to insert a tabulator in a string?
For example:
"Name:" + + "Hannes" + " \n" +
"City:" + " " + "New York"
-->so Hannes and New York should be placed on the same position (same space from the left side)
2 Answers:window-->palette (ctrl+shift+8)--->break (drad it on you page)--->select "page break". Vote up!
Under "Static text properties -> Text" you will find your text. Click onto the button [...] so that a window opens where you can enter your text including line breaks.
To add a new page go to Ireport and "Add Report Group" ,by adding report group you can add as many pages you want.
Description. IMMEDIATE. The band is allowed to split anywhere, as early as needed, but not before at least one element being printed on the current page/column. PREVENT. Prevents the band from splitting on first break attempt.
Answer to your 1st question:
Break
to Detail
band. Choose Page Break
. Print When Expression
to $V{PAGE_COUNT}==11
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With