iReport table with additional record repeating for each row

前端 未结 1 1121
一生所求
一生所求 2021-01-20 00:05

I searched all over the Internet and also on this forum but i can\'t find a way to achieve something like the table below. I\'m using iReport 4.7.1.

Please

1条回答
  •  南笙
    南笙 (楼主)
    2021-01-20 01:02

    It is quite easy. You should add the textField element to the Detail band below the textFields with fields.

    Here is a sample.

    The report design in iReport:

    The report's design in iReport

    The jrxml file:

    
    
        
            
        
        
        
        
        
            
                
                    
                    
                        
                        
                        
                        
                    
                    
                        
                    
                    
                
                
                    
                    
                        
                        
                        
                        
                    
                    
                        
                    
                    
                
                
                    
                    
                        
                        
                        
                        
                    
                    
                        
                    
                    
                
            
        
        
            
                
                    
                    
                        
                        
                        
                        
                    
                    
                    
                
                
                    
                    
                        
                        
                        
                        
                    
                    
                    
                
                
                    
                    
                        
                        
                        
                        
                    
                    
                    
                
                
                    
                    
                        
                        
                        
                        
                    
                    
                    
                
            
        
    
    

    The result will be:

    The result in iReport via preview

    0 讨论(0)
提交回复
热议问题