• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

iReport - problem in applying styles

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,



I am using a text field in the report which should contain a combination of static and dynamic content, i.e. part of the text will be fetched from the Database and will be placed in between static content.

E.g. Your request No: 1234 is being processed. We will be sending you �



I was able to achieve this using the text filed in iReport. Now I am facing a problem in applying specific style (say bold) to a part of the text within a text field

E.g. Your <b>request No: 1234</b> is being <b>processed</b>. We will be sending you �



If I apply the bold property it makes the whole content of the text field as bold.



Could someone help me out to solve this issue?



Thanks,

Radha
 
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Radha

try like this in jrxml

"<style isBold=\"true\" fontSize=\"10\" pdfFontName=\"arialbd.ttf\" forecolor=\"black\">COMMENT: </style>"
+($P{comments})
reply
    Bookmark Topic Watch Topic
  • New Topic