How to draw a border around both the column header, footer and detail sections?

前端 未结 4 1262
无人共我
无人共我 2020-12-06 06:32

I have a requirement to have a border that will encapsulate all the details + the column header in a report made in JasperReports + iReport. But if I try to draw a rect or a

4条回答
  •  攒了一身酷
    2020-12-06 06:41

    To do this you can put frames into each of the bands, setting their size to fill the band completely. Then set the borders on the frames to replicate a border around all three bands, so the header has a border at the top, left and right; the footer has bottom, left and right; and the detail band has a border only on the left and right. See the example code below.

    
        
            
                
                
                    
                    
                    
                
            
        
    
    
        
            
                
                
                    
                    
                
            
        
    
    
        
            
                
                
                    
                    
                    
                
            
        
    
    

    The result should look like this: Screenshot from iReport

提交回复
热议问题