views:

31

answers:

2

Hi,

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?

Thanks

+1  A: 

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

MatthieuF
A: 

You can uncheck the Print Repeated Value checkbox on the properties of the Text Field that displays the hotel name.

gedim