2016-09-15 43 views
0

我有在碧玉2子报表打印碧玉子报表陆续

subreport1: containing list of food and beverage items 
subreport2: containing list of bar items 

我想通过打印两份名单此起彼伏, 生成使用Java,一个PDF但是当我尝试这样这些列表合并在一起像这样:

fnbitem1 
baritem1 
fnbitem2 
baritem2 
fnbitem3 
baritem3 

,但我需要的输出是:

fnbitem1 
fnbitem2 
fnbitem3 

baritem1 
baritem2 
baritem3 

如何解决这个问题?

+0

有没有可能是你的报表元素重叠在你的设计? – Blobonat

+2

分享'.jrxml'内容。 –

回答

0

我认为每个子报表的位置不正确,你应该创建2详细组,Detail1Detail2,您将在Detail1 subreport1,并subreport2在Detail2

<detail> 
    <band > 
     <subreport> 
      ..... 
     </subreport> 
    </band> 

    <band > 
     <subreport> 
      ..... 
     </subreport> 
    </band> 
</detail>