carlosan22 Posted April 16, 2008 Share Posted April 16, 2008 Hi Every one, this i think is my first post in here. Always i find a solution to my problems with jasper, unless that was my fault :laugh:. Im workin with jasperreports/ireport 2.0.5, and i have a problem when i want to print a field with a different color when an expression becomes true, the fields are one in the top of another, overlaped. When i run the report in the JRViewer or in a pdf file or in Java 2d preview, it works fine the field appears and disappears as planned, but not so in an excel file or a html file just dont appear, the only way is not to overlap the fields, but i cant do it because they must be showed in conditionally in same place, what i can do? Thanks in advance Link to comment Share on other sites More sharing options...
lucianc Posted April 16, 2008 Share Posted April 16, 2008 Use a conditional style for the text field:Code: <style name="CondStyle"> <conditionalStyle> <conditionExpression><![CDATA[..condition..]]></conditionExpression> <style forecolor="red"/> </conditionalStyle> </style> ... <textField> <reportElement ... style="CondStyle"/> ... </textField> HTH,Lucian Link to comment Share on other sites More sharing options...
carlosan22 Posted April 18, 2008 Author Share Posted April 18, 2008 Thanks! It works just like i wanted to! I have no idea of this its very cool 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