manuatilomb Posted January 26, 2016 Share Posted January 26, 2016 I have a report with several dates being displayed, each with the month showing as letters. But in some of them, the first letter is in lowercase, while in other ones the first letter is in uppercase, and I don't know why that happens. What's weirder is the fact that that only happens if I'm using spanish as the localization language.I think some of this may have to do with how jasper or ireport sees textfields with only a date, and textfields that happen to have a date, since in titles and the like, it's printed with uppercase, and with data fields and graphs, it's printed in lowercase.Any help is highly appreciated. Link to comment Share on other sites More sharing options...
Solution manuatilomb Posted January 26, 2016 Author Solution Share Posted January 26, 2016 Welp, seems like I was right. It was a type difference. I just made a test and proved it. If a textfield uses a date, it will format the spanish month name in lowercase, and if it is a text, it will format the first letter in uppercase.EDITFound out that my previous answer was wrong. The text field was showing uppercase, but only because it wasn't using the report locale, so the language parsing to was the default one (english). Once the spanish locale was set on the SimpleDateFormat, it parsed it in spanish and lowercase, like before. After searching a bit, it turns out that the lowercase is the default aspect of spanish months in java, so this isn't a ireport or jasper issue whatsoever 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