jasper report(ireport) line/border not following to next group

旧时模样 提交于 2019-12-24 16:11:45

问题


My report border is not displayed in continues way... As shown in the image below i have 5 sections

  • Page header - Logo and header content on each page
  • Group Header 1 - displays employee details as it will be single row
  • Group Header 2 - displays project details as it will be multiple row
  • Detail section - displays project images
  • footer - displays address on each page

The image below is showing up only 1st page wherein 2nd page(detail section) contains the images of the project.

As you can see there is a gap at the border after group header 2 -> footer

I've used line(element from palette) as a border, i've tried all types of stretch type but no luck :(

Can someone please help me out on how to resolve the issue.

Here is my JRXML code

http://pastebin.com/RbM51GHU


回答1:


This is since the detail band does not run to the end of your report.

Since you have isStretchWithOverflow="true" on certain textfield's we can not make the detail band to take whole page size (you would risk that it goes on next page if something in group band stretch's)

The solution is to add the two blue vertical border's in the background band and remove these from the detail, group and footer band.



来源:https://stackoverflow.com/questions/34743531/jasper-reportireport-line-border-not-following-to-next-group

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!