m.hofmann Posted February 6, 2020 Share Posted February 6, 2020 Hey guys,I'd like to format numbers on my report with a pattern, rathern then the locale that is set.I do need the locale for localization of various static texts on the reports.Jasper seems to ignore patterns if a locale is set.Is there a way to force Jasper to format numbers by a pattern that is supplied to a text field with via style?Thanks in advance! Link to comment Share on other sites More sharing options...
I am Leo Posted February 7, 2020 Share Posted February 7, 2020 Why don't you format the number in your java application first and then pass it into Jasper to display? Link to comment Share on other sites More sharing options...
trvpseudo Posted February 7, 2020 Share Posted February 7, 2020 if u use jasperstudio or ireport, theres "pattern" properties.just click the elements and find "pattern" in the "text field" properties tab.theres some default pattern in there u can choose.regards, TV 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