Totukush
Totukush

Reputation: 1

How to remove blank space between textfields in iReport Designer

I use iReport Designer 5.6.0. I have the same problem as described here- How to remove extra space between textfield in JasperReports?

I want avoid an extra space between text fields and parameters in Designer, below didn't work out for me:

  1. I set the position property for all the fields to float.
  2. I checked the property checkbox by the name remove line when blank.
  3. I checked the property checkbox by the name blank when null (to remove null values from the report).

How can I shrink/remove blank space between textfield?

Upvotes: 0

Views: 5116

Answers (2)

YOGESH C UGALE
YOGESH C UGALE

Reputation: 51

Try trim function to solve your problem.

$F{name}.trim() $P{add}.trim()

trim function eliminates leading and trailing blanks. it may solve.

Upvotes: 1

Arno
Arno

Reputation: 66

As far i know, there is no option for this on horizontal lines.

What are the values of this text fields. If they are fields, parameters or variables you can just add one text field and create an expression that checks on empty values. The expression is something like this:

$P{param1} + 
(!$P{param2}.isEmpty() ? " " + $P{param2} : "") +
(!$P{param3}.isEmpty() ? " " + $P{param3} : "")

of course this only works when you are using fields, parameters and variables

Upvotes: 0

Related Questions