rajuchacha007 Posted May 20, 2010 Share Posted May 20, 2010 Hello experts, I have been generating reports and executing them within a java file. I am using Group Header to group the data for particular criteria. Now, if I want to diplay this data in Uppercase or in lowercase what hould I do? Right now my approach is to use print when expression.for e.g. for a particular field, in the print when expression property, I am writingfirst i tried$F{description}.toUpperCase()Later I tried$F{description}.toUpperCase()==trueIt compiles well without any error but it does not show the desired out put. It shows completely blank. I think it's due to this expression, it's checking whether or not this field is uppercase only. This is where i am committing mistake. How to get this field converted in uppercase? Should I declare boolean? Thanks in advance.Best regards. Link to comment Share on other sites More sharing options...
Giulio Toffoli Posted May 20, 2010 Share Posted May 20, 2010 Forget about the print when expressin, it is used to condition the visibility of the textfield.You just need to modify the expression of the textfield (which is what is displayed in the textfield itself).What you did in terms of expression was correct:$F{my_field}.toUpperCase()This will print the value of my_field in upper case.Giulio Link to comment Share on other sites More sharing options...
rajuchacha007 Posted May 20, 2010 Author Share Posted May 20, 2010 @giulio You are right. It worked. I should have done for the textfield expression.Thanks a lot. Best regards. 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