Auto height rectangle in detail band
05:26 16 Jul 2014

I am using iReport. I want to know how to make an auto height rectangle?enter image description here

as per this sample image of detail band. There is two part one is data part on right side which fetch data and show. and left side part is a textarea data which is passed as parameter. I want to make both rectangle same height. It may possible that left side data height is bigger than right side part and vice versa. So I want to make both rectangle height same all the time.

For achieving this i use following code. where I don't use rectangles but a lines only


            
            
        
    


    
    
        
            
            
                
            
            
        
        
            
            
                
            
            
        
        
            
        
        
            
        
        
            
        
    


    
        
            
        
    

But the issue with this way is corners of rectangle is not properly printed.

My questions are:

1) Is there any better way to do this?

2) how to draw a border of complete detail band?

3) How to do this with rectangle ?

Here is another try with rectangle around detail band but rectangle is repeated to each row.


    
        
            
        
        
            
            
                
            
            
        
        
            
            
                
            
            
        
    

jasper-reports