본문 바로가기
  • 아하하
개발/개발툴

[iReport] Detail band fixed.

by 쥬쥬파파 2018. 4. 25.

Group Header와 Group Footer를 이용해서 Detail Band가 고정된것 처럼 보이도록..


https://community.jaspersoft.com/questions/982976/how-fix-height-detail-band-inside-table



In case of fixed-height rows you could add other 5 detail bands of the same height in your detail section, each of them populated with empty elements (in order to keep the same layout as in the occupied rows) and each of them having a print when expression (assuming the group name is 'category'):

  • $V{category_COUNT} < 1 - for the first band
  • $V{category_COUNT} < 2 - for the second band
  • $V{category_COUNT} < 3 - for the third band
  • and so on

This solution cannot be applied for rows with variable height, because we don't know the most appropriate height value for the additional bands. In such a case, making use of table component/subreports for each of 3 tables would represent a better approach.

'개발 > 개발툴' 카테고리의 다른 글

[ERMaster] SQL Server 2005 연결하기  (1) 2018.04.26
[iReport] 팁  (0) 2018.04.25
[iReport] 보고서 밴드 특성  (0) 2018.04.18
자주 사용하는 툴.  (0) 2018.04.09
Oracle SQL Developer에서 MSSQL 접속하기  (0) 2018.04.09