karmaker Posted June 12, 2007 Share Posted June 12, 2007 Hi All, Using the below tag , I am displaying the value of 'tnc' which i fetch from the database. <textFieldExpression class="java.lang.String"><![CDATA[$P{tnc}]]></textFieldExpression> My requirement is to display the value of 'tnc' in multiple lines. For ex : The value of 'tnc' in the database is'My name is karthikeyan I am learning reports'. I am fetching this value from the database and assigning it to a variable named 'tnc' The output in the report should be like My name is karthikeyan I am learning reports I tried inserting "n","/n","rn",n,rn in between the word 'karthikeyan' and 'I', but nothing worked out for me. I would appreiciate if you can let me know the solution for this problem. Thank you, S.Karthikeyan Link to comment Share on other sites More sharing options...
sray Posted June 12, 2007 Share Posted June 12, 2007 use "n" for break in HTML and JRViewerand "r" for PDF for a better result use it like this"n r" Link to comment Share on other sites More sharing options...
karmaker Posted June 12, 2007 Author Share Posted June 12, 2007 Thanks for your reply. I tried using "nr" , but couldn't able to get the right result. I tried the following update to my database data. 1. 'My name is karthikeyan "n r" I am learning reports' 2. 'My name is karthikeyan n r I am learning reports' But Still the output is not resulted in two lines. Link to comment Share on other sites More sharing options...
codyjasperForge Posted July 5, 2007 Share Posted July 5, 2007 use "backslash " n "backslash "r instead of "/n" "/r" (Java syntax)...good luck Post edited by: codyjasperForge, at: 2007/07/05 15:47Post edited by: codyjasperForge, at: 2007/07/05 15:47 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