Win a copy of TensorFlow 2.0 in Action this week in the Artificial Intelligence and Machine Learning forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Liutauras Vilda
  • Paul Clapham
  • Bear Bibeault
  • Jeanne Boyarsky
  • Ron McLeod
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Jj Roberts
  • Stephan van Hulst
  • Carey Brown
  • salvin francis
  • Scott Selikoff
  • fred rosenberger

iReport - problem in applying styles

Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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?


Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Radha

try like this in jrxml

"<style isBold=\"true\" fontSize=\"10\" pdfFontName=\"arialbd.ttf\" forecolor=\"black\">COMMENT: </style>"
Consider Paul's rocket mass heater.
    Bookmark Topic Watch Topic
  • New Topic