File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other Open Source Projects and the fly likes iReport  - problem in applying styles Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Products » Other Open Source Projects
Reply Bookmark "iReport  - problem in applying styles" Watch "iReport  - problem in applying styles" New topic
Author

iReport - problem in applying styles

M Radha
Greenhorn

Joined: Feb 07, 2008
Posts: 4
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
Kavita Kale
Ranch Hand

Joined: Jan 01, 2006
Posts: 34
Hi Radha

try like this in jrxml

"<style isBold=\"true\" fontSize=\"10\" pdfFontName=\"arialbd.ttf\" forecolor=\"black\">COMMENT: </style>"
+($P{comments})
 
 
subject: iReport - problem in applying styles
 
Threads others viewed
Problem with UTF-8 Character encoding
text formatting in JavaMail!!!!!!!!!!! URGENT!!!!!!!!!
iReport : to combine format style in a textfield
How to make text bold in Text Area
html:text and html:textarea problem
developer file tools