列页脚和摘要条带的问题 [英] Issue with Column footer and Summary bands

查看:78
本文介绍了列页脚和摘要条带的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 JasperReports 创建发票。

我有一个详细信息部分,其中包含所有列表项目后跟一个包含总计,税金等的列页脚,然后是摘要部分中的退货政策。

I have a Detail section that has the list of all items followed by a column footer which has Totals, Tax etc., and then the return policy in the Summary section.

我想要永远确保详细信息后跟列页脚,然后是摘要条带。我们怎样才能确保这一点?我发现有时摘要位于列页脚之前。

I want to always ensure that the Detail is followed by Column footer followed by Summary bands. How can we ensure this? I found that sometimes the Summary comes before the Column footer.

有人可以对此有所了解吗?

Can someone throw some light on this?

推荐答案

目前没有太多的解决方案,因为它似乎是设计而非错误(我个人认为他们应该有一个选择)。您目前的选择是:

There really is not much of a solution to this at the moment as it seems to be by-design and not a bug (personally I think they should have an option for this). Your options at the moment though are:


  • 创建一个报告组(这实际上是一个虚拟报告组,
    不是真的很重要)。将列页脚内容移动到
    组页脚区域,并将摘要保留在摘要乐队。
    这似乎适用于我的有限测试,我会先尝试一下。

  • 设置 Float Column Footer
    主报表属性下新页面
    的摘要为true。这有一个令人遗憾的副作用,即
    摘要将始终打印在第二页上,无论
    一切都适合一个。

  • 设置浮点列页脚为true并将摘要部分移动到
    最后页页脚乐队。这意味着它只会打印一次,
    但内容将朝向最后一页的底部。

  • Create a Report Group (this is essentially a dummy report group, doesn't really matter). Move your Column Footer contents into the Group Footer band, and leave your Summary in the Summary band. This seemed to work in my limited tests, and I would try it first.
  • Set Float Column Footer and Summary on new Page to true under the main report properties. This has the unfortunate side effect that the summary will always be printed on a second page regardless if everything could fit on one.
  • Set Float Column Footer to true and move your Summary section to the Last Page Footer band. This means it will only be printed once, but the content will be oriented towards the bottom of the last page.

编辑:为了解决这部分问题。这是设计的。列页脚被视为/基本上是一个专门的页脚。所以身体内容(细节带,摘要带等)总是放在它上面的页面上。似乎没有发生的唯一一次是在打印完最后一个列页脚之后在新页面上打印摘要时。所以它是设计的。

For the shed some light on this part of the question. It is by design. The Column Footer is seen/treated as essentially a specialized Page footer. So body content (detail band, summary band, etc.) are placed on the page above it always. The only time it does not seem to happen is when the summary is printed on a new page, after the last Column Footer has been printed. So it is by design.

这篇关于列页脚和摘要条带的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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