Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用JasperReports生成报告。我正在使用两个字段包含Page X of Y表达式。如果报告仅包含一页,是否可以隐藏此字段?
Page X of Y
You can use the field property "Print When Expression" with a expression like that:
$V{PAGE_NUMBER} > 1
But you have to set this as well: evaluationTime="Report"