Jump to content

outline problem


detheo

Recommended Posts

Hi,

 

Being rather new on Ireport I've got a problem outlining on a decimal position.
It's a quantity with type double precision and the pattern ##0.##.

Is it possible to outline on the zero of the pattern, so that with for example 113.15 and 53 both 3 are exactly beneath each other?

 

Thanks in advance

Theo

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Suggestion :

Create variable i.e: D1 , VariableClassType : java.lang.String , VariableExpression : {yourDoubleValueField}.toString()

Create text Field in your Detail Band with expression :

$V{D1}.endsWith( ".0" ) ? $V{D1}.replace( ".0", "    " ) :
new DecimalFormat("#,##0.##;- #,##0.##").format( {yourDoubleValueField} )

 

Good Luck.

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...