Put text not repeatable in horizontal detail


I want to put a static text not repeatable in horizontal band detail of my report written with iReport.

I've created my band in this way:

  • Print Order: Horizontal
  • Columns no.: 10

But I want an effect like this:

Horizontal band sample

But the only effect proposed is: repeating of header name and age together the value.

How can I resolve this?

I used iReport 5.1.0

Joe Taras's picture
Joined: Dec 3 2013 - 11:00am
Last seen: 3 months 2 weeks ago

3 Answers:



I want to share my solution step by step:

  1. I've created a band detail to explode in horizontal way and I've set number of column (10)
  2. I've added a text field "Name"
  3. I've set the following XML properties on "Name" text field:
    • isPrintRepeatedValues = false
    • printWhenGroupChanges = "name of group container"
  4. I've put field $F{Name} in the same column of text field "Name"

The result has been:

All value of name field are repeated and the text field has shown only once.

Have a nice day ;)

Joe Taras's picture
Joined: Dec 3 2013 - 11:00am
Last seen: 3 months 2 weeks ago

Any reason why you don't want to put your header in the header band? How about creating a sub-report?

hozawa's picture
Joined: Apr 24 2010 - 4:31pm
Last seen: 4 months 1 week ago

Because in my subreport I've these informations (name and age) exploding in horizontal way but in vertical order (as my upper image). So to understand to my users GIUSEPPE, MARIA, ERASMO are NAME i want to apply a text field at the begin of row (idem about AGE field)<strong><<<<<< This comment was blocked and unpublished because <a href="http://www.projecthoneypot.org/">Project Honeypot</a> indicates it came from a suspicious IP address.</strong>

Joe Taras - 5 years 8 months ago

That you see is encapsuled in a subreport. I try with cross tab but not good tool because I want to show only a part of data because I have grouped info. It's very hard!

Joe Taras - 5 years 8 months ago

You can actually do this in the UI. "print repeated values" unticked and then print when expression "($V{REPORT_COUNT})<2". This way you can use it without a group. This can also be done with lines if you're creating a grid. Handy when using sub reports to show first the data horizontally and then the trend with a chart


alex_23's picture
Joined: Dec 28 2014 - 12:32pm
Last seen: 14 hours 57 min ago