Jump to content
Changes to the Jaspersoft community edition download ×

Header without data on page


csourcezone
Go to solution Solved by tchen,

Recommended Posts

Hello, 

I have a main report with two subreports displaying a list of entries. When first subreport is at a given number of rows, it pushes the second report at the bottom, (which is normal), but is showing the header of the second without any rows, and starts on teh second page with the header+rows which is again correct.

My problem is to avoid displaying the empty header (without rows on this case). I've tried using a group using min height, which is working great, but using this approach on Tomcat 5.5 it repeats the header for each row which is not correct.

Can you please help with some ideas? Thanks.  

BSDR-Header_pdf.png.d7e64ac666ba06c092c3125c3a7277f3.png

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

  • Solution

I am not sure how you have implemented this two sub reports in the main report. You can certainly use group minHeightToStartNewPage property setting or put them into two separate detail bands to meet  your report design requirement. In the group approach, you need to make sure the minimum height set in the main report group header is the page height of your sub report, not the field height of your sub report column. In the two detail band approach, you need to make sure the height of the detail band hosting your sub report must be no less than sub report height itself and detail band is set to stretch.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...