Jaspersoft:详细表格中表格末尾的额外空间 [英] Jaspersoft : Extra space at the end of table in detail band

查看:572
本文介绍了Jaspersoft:详细表格中表格末尾的额外空间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用jaspersoft studio 5.6。我创建了一个详细的表格来显示数据库中的数据(它扩展到很多页面)。当在新页面中,在某个时刻,它会在最后产生额外的空间。您可以在我上传的图像中看到,在记录23日时,它会在下面生成额外的空间,但是从25日开始它不会。有人可以帮我解决这个问题吗?这让我感到困惑。



解决方案

好的,这是根据我的情况发生的事情(无法测试,但你可以)


  1. 你的细节乐队是身高= 65

  2. 你的桌子在y = 15身高= 50

如果你没有足够的行,你的表永远不会到达高度= 50,所以由于细节带是65,你将在表下面有空间,因此表从15开始,运行2行给高度= 40,将有10个空格直到细节乐队结束。



解决方案:



制作你的桌子的高度为20行!并减少细节带以适合身高= 3 5



您需要更改的标签是:

 < componentElement> 
< reportElement x =0y =15width =511height =20uuid =b3d3ccdb-1d82-4bb3-81f6-e0690e70519b>




  • 详情带上的标签

     < detail> 
    < band height =35splitType =Stretch>



I am using jaspersoft studio 5.6. I created a table in detail band to display data from database (it expands to many pages). And when in the new page, at some point, it generates extra space at the end. You can see in the image I uploaded here, when in record 23rd, it generates extra space below, but from 25th it not. Can someone help me on this problem? It make me confuse.

jrxml file

解决方案

Ok, this is what happens according to me (can't test but you can)

  1. Your detail band is height=65
  2. Your table is at y=15 height=50

If you do not have enough rows your table will never arrive to height=50, so since detail band is 65 you will have the space below the table, hence table starts at 15, runs for 2 rows give height=40, there will be 10 space until detail band ends.

Solution:

Make the height of your table as 1 row in it 20!, and reduce the detail band to fit height=35

The tag you need to change on the table is:

<componentElement>
   <reportElement x="0" y="15" width="511" height="20" uuid="b3d3ccdb-1d82-4bb3-81f6-e0690e70519b">

  • tag on detail band

    <detail>
     <band height="35" splitType="Stretch">
    

这篇关于Jaspersoft:详细表格中表格末尾的额外空间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆