Reputation: 1
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:
How can I shrink/remove blank space between textfield?
Upvotes: 0
Views: 5116
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
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