避免在JRXML中重复列标题 [英] Avoid repeating column header in JRXML

查看:108
本文介绍了避免在JRXML中重复列标题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何避免在JRXML中重复列名?在使用JRXML和Jasper生成报告时,是否有任何属性可以避免在每个页面中使用列标题?

How can I avoid the column name repeating in JRXML? Is there any attribute for avoiding having the column header in each page when generating a report using JRXML and Jasper?

推荐答案

如果标题将始终位于特定页面(例如第一页),您可以添加

If the header will always be on a specific page (e.g. the first page), you can add

<printWhenExpression><![CDATA[$V{PAGE_NUMBER}==1]]></printWhenExpression>

到乐队,这将使其仅在第1页上打印。 PAGE_NUMBER 是一个内置变量,在生成报告时自动递增。

to the band, which will make it only print on page 1. PAGE_NUMBER is an inbuilt variable that is automatically incremented as the report is generated.

这篇关于避免在JRXML中重复列标题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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