Jump to content
Changes to the Jaspersoft community edition download ×

can sub report band height stretch with main ?


effexp

Recommended Posts

   Sorry for my bad English,

   I am using jasperreport 2.0.2, I wan to make a report like this:

Text1 line1
line2
line3
line4
line5

 

I want the Text1 to be vertical align in middle,  so I put the Text1 in main report and the line data in subreport, and set Text1's stretch type property to "Relative to the tallest  object",  it work fine.

but when the line data in subreport has just one line and the Text1 was more then one line , it becomes like this: 

Text1 aaa aaaaaaaaaaa line1
 

 

the subreport's line data textField didn't stretch to the same height as the Text1 field as I want.

I had already set both Text1, subreport and line1 's stretch type property to "Relative to the tallest  object", but it still not work, finally I found that the reason may be that the detail band in subreport was fix height and wouldn't stretch to the whole sub report's height.

Any suggestions to solve this?

Thanks,

Frank

 

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Popular Days

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