ktrinad Posted August 31, 2006 Share Posted August 31, 2006 By: madhuri - madhuri_ls ireport-lpad 2003-10-17 22:47 formatting of the fields using lpad By: Giulio Toffoli - gt78 RE: ireport-lpad 2003-10-21 04:29 write a java class that convert a number in words decaring it as follow: public MyTextFormatter{ static public String lpad(String str, int len, String padder) { // your code here return str; } } Then in your textfield write an expression like: MyTextFormatter.lpad( $F{MyTextField}) Giulio Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now