gpt4 book ai didi

mysql - Ireport:防止细节拆分影响页面总数

转载 作者:行者123 更新时间:2023-11-29 01:03:44 25 4
gpt4 key购买 nike

当我试图阻止详细信息拆分时,它会影响页面总数。这是正在发生的事情:摘要在当前页面完成,额外的行显示在下一页。但我希望在出现转发行的页面上计算总和。

例如:

在第 1 页:我有 V1+V2+V3+V4 的余额,但 V4 出现在第 2 页

通常我应该在第 1 页中有 V1+V2+V3 的余额,在第 2 页中有 V4+V5+V6 的余额。

谁能帮帮我! enter image description here

最佳答案

If I have good memories this is a case of miscalculation of forwarded rows by ireport. Whenever a row spread over two consecutives pages ireport becomes confused. Instead of using split type= prevent as option in the detail band , set it to split type= Stretch. Then create a dummy group (by primary key of the row) with group header and footer enabled that will act as a container for each row . Dummy group option are: reprint header=true, Min Height to start new= value of detail band height, Footer Position= normal, Keep together= true.

Now if each row is processed as group and will be forwarded to next page it cannot fit a the current one. Hope it helps

您在哪个波段添加了“总页数”?我有同样的问题,我试过你的解决方案,但是,问题仍然存在,总数随着下一页的值而增加。

我的报告:

enter image description here

关于mysql - Ireport:防止细节拆分影响页面总数,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16055714/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com