Jump to content
We've recently updated our Privacy Statement, available here ×

isStyledText=true yet still style tags appear


martynhiemstra

Recommended Posts

Hi All,

I would like to inform if there is maybe a bug in the textElement tag. If I set isStyledText to true like this:

<textElement isStyledText="true" lineSpacing="Single">
    <font fontName="Courier New" size="10" pdfEncoding ="Cp1250" isStrikeThrough="false" />
</textElement>

I then set the text to something like this:

<style isUnderlined='true'>TEXT</style>

When I view the report in the jasperviewer or print the report I see this in the textField.

<style isUnderlined='true'>TEXT</style>

Somehow the style tag isn't parsed. I have set isStyledText="true", I have tried different encodings. Even set the encoding to html and tried to print html but nothing is working. The tags are NOT getting parsed. I am using jasperreports 3.0.0

Any help would be appreciated.

Thanks in advance,
Martyn

 

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

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