Hi,
Now i'm create to sample template using iReport Designer 5.1.
but i have problem about 'textfield page break', textfield have a variable data length (very short or very long).
this is my structure with properties setting.
== Page Header : Split type <Default>
====Static Text
==Column Header : Split type <Default>
====Field1 : Position type <Fix Relative to Top>, Stretch type <No stretch>, Stretch With Overflow <true>
====Field2 : Position type <Float>, Stretch type <No stretch>, Stretch With Overflow <true>
==Detail
====Field1 : Position type <Float>, Stretch type <No stretch>, Stretch With Overflow <true>
====Field2 : Position type <Float>, Stretch type <No stretch>, Stretch With Overflow <true>
====Field3 : Position type <Float>, Stretch type <No stretch>, Stretch With Overflow <true>
...
==Page Footer
===="Page "+$V{PAGE_NUMBER}
problem is Detail band, textfield2 or textfield3.
for example)
<<page 1>>
Sample Report
blablablablablablablablablablablablablablablabla1
blablablablablablablablablablablablablablablabla2
-----------------------------------------------------------------------
textfield1textfield1textfield1textfield1textfield1textfield1
textfield1textfield1textfield1
textfield2textfield2textfield2textfield2textfield2textfield2
textfield2textfield2textfield2textfield2textfield2textfield2
textfield2textfield2textfield2textfield2
...
textfield8textfield8textfield8textfield8textfield8textfield8
<<page 2>>
Sample Report
blablablablablablablablablablablablablablablabla1
blablablablablablablablablablablablablablablabla2
-----------------------------------------------------------------------
textfield8textfield8textfield8textfield8textfield8textfield8
textfield8textfield8textfield8textfield8textfield8
...
I'd like to textfield8 bring on next page. is that possible ?
Can you please give me some suggestions?
(i already search this community and google, but didn't find correct answer.)
1 Answer:
You could place the textfield3 that is not allowed to stretch over serveral pages into a own DetailBand2 (iReport -> contextmenue -> addAnotherDetailBand) and set the SplitType of the new DetailBand2 to "prevent" ... so all other fields can stretch and break but just the one you won't want to break starts immediatly at the next page if it doesn't fit at current page.
hth + regards from Germany
C-Box