Jasperreports - 隐藏报告中的重复字段 [英] Jasperreports - Hide duplicate field in report

查看:141
本文介绍了Jasperreports - 隐藏报告中的重复字段的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Java和JasperReports创建报告。我得到的是一个按酒店名称顺序输出酒店详细信息的查询。

I'm creating reports using Java and JasperReports. What I've got is a query that outputs hotel details in order of Hotel Name.

我的问题是,很多时候酒店名称字段没有从行更改为行。我想了解如何只打印每个不同的酒店名称,以便停止报告打印不必要的酒店名称。

My problem is that, a lot of the time the Hotel Name field doesn't change from row to row. I want to find out how to only print each different hotel name once to stop the report printing unnecessary hotel names.

任何人都知道如何做到这一点?

Anyone have any idea how to do this?

推荐答案

一个团体不会做你想做的事吗?您将酒店名称放入一个组中,它只会打印一次。

Would a group not do what you want? You put the hotel name into a group and it will only be printed once.

这篇关于Jasperreports - 隐藏报告中的重复字段的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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