Jump to content
Changes to the Jaspersoft community edition download ×

hide the band when the subreport has no data


Recommended Posts

By: Charles Nocode - cnocode

hide the band when the subreport has no data

2003-06-25 22:41

Hi,

 

I have created an "fake" band in my master report. The footer of this "fake" band includes the subreport.

 

How can i hide or suppress the "fake" band when the subreport is an empty report ?

 

thanks in advance

 

 

 

 

 

By: Chuck Deal - cdeal

RE: hide the band when the subreport has no data

2003-06-26 05:15

possibly make both the band and subreport height=0. You may also need to make a few settings as to the stretching of the subreport.

 

This way, is the subreport is empty, it should not take up any space.

 

I have not tried this solution, but it seems like it would work.

 

BTW, you may have to set the displayType of the supreport to NoPages so that nothing is produced when there are no records.

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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...