Jump to content

Use Style on Text Expression


pramudya81

Recommended Posts

Hi,

I am using iReport 3.7.3

And I am facing exact problem as I found on http://jasperforge.org/plugins/espforum/view.php?group_id=83&forumid=101&topicid=50134

But I can not see the continuation of that thread. So I ask again in this forum.

I have text expression with value

"<style isBold='true' fontSize='10'>Card No : " + $P{P_CARD_NO} + "</style>"

I could see the expected result on iReport but If I call it from JSP the text is in plain format. No bold. No bigger font size as 10 defined.

What's missing here?

 

Thanks

Link to comment
Share on other sites

  • Replies 5
  • Created
  • Last Reply

Top Posters In This Topic

Hi,

 

The attributes whatever you are using under Style tag are incorrect. I don't know the actual reason behind that. But I also had the same problem and fixed myself.

There is no attribute called 'fontSize'. It should be 'size' only. I don't know the working attribute name for 'isBold'.

 

Purushotham Reddy,

Software Developer

Link to comment
Share on other sites

How did you solve the problem? As far as I know, "isBold" and "fontSize" where the proper attribute names! O.o

also, I've noticed that using simple html like "<b>TEXT</b>" doesn't seems to work anymore, not in the preview nor in the actual printed report. I've tried to set the markup to both "styled" and "html", but if I remember correctly, the "styled" option used to include the html part...

any help anyone?

 

EDIT: I don't really know about "fontSize", but I'm SURE I've used "isBold" plenty of times before, together with the html tags...



Post Edited by mtassinari at 06/16/2010 14:16
Link to comment
Share on other sites

  • 3 years later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...