Jump to content
Changes to the Jaspersoft community edition download ×

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 6
  • 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...
  • 10 years later...

Hi there,

I understand that you are facing an issue with the text expression not displaying correctly when called from JSP in iReport 3.7.3.

To troubleshoot this issue, you can try the following:

  • Ensure that the JSP page is correctly configured to use the iReport library and that the necessary JAR files are included in the classpath.
  • Check the HTML code generated by iReport to see if the CSS styles are being applied correctly. You can do this by inspecting the HTML code in a browser.
  • Try using a different text expression to see if the issue persists.
  • Update to the latest version of iReport to see if the issue has been resolved.
Link to comment
Share on other sites

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...