Jump to content
JasperReports Library 7.0 is now available ×

supressing leading zeroes ... again


Recommended Posts



i need to suppress leading zeroes in my ireport field (type: string)

eg., "0004" should be "4".


someone gave me some help in this forum (sourceforge) the code is given below .. but did not compile correctly. Can some kind soul help me with the syntax and whether this will work ...


new integer().valueOf($F{fieldname})


P.S.: the database field is in string. i have changed the ireport field to "java.lang.integer"



Thanks ..



Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

  • 11 years later...

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...