Jump to content
JasperReports Library 7.0 is now available ×

ireport-lpad


ktrinad

Recommended Posts

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

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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