iReport自适应行高

iReport设计报表,当Detail的行高需要自适应时,应按如下设置:

1. 所有TextField的 Position Type = Fix Relative to Top (或Fix Relative to Bottom)

2. 所有TextField的 Stretch Type = Relative to Band Height(或 Relative to Tallest Object)

3. 需要自适应增高的TextField的 Stretch With Overflow = True

4. Detail Band 的 Split Type = Stretch

5. 报表的Print Order = Vertical (这点很重要,如果设为Horizontal,Detail Band 不能自动增高)

posted @ 2011-10-14 09:42  Jamie  阅读(9861)  评论(0编辑  收藏  举报