This expression in Jasper reports is useful for a text that need to get into a new line whenever an & occurs but the problem is though the text gets into a new line it is displaying an extra & on output.
Hence, using another replaceAll function from core java for field object we can overcome getting extra &.
Sample Expression:
$F{ProjectDescription}.replaceAll("lt;br>", "<br>" ).replaceAll("&","")
Tip Credits: Nimmana
Hence, using another replaceAll function from core java for field object we can overcome getting extra &.
Sample Expression:
$F{ProjectDescription}.replaceAll("lt;br>", "<br>" ).replaceAll("&","")
Tip Credits: Nimmana
No comments:
Post a Comment