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

Is Styled text and &


walmillard

Recommended Posts

I have a Field CustomerName that contains an & character which is delimted in the XML data to & The CustomerName data displays correctly in the report EXCEPT when it is printed as part of a <style> tag set. IE

"<style pdfFontName=\"Helvetica-Bold\">Customer : </style>" + $F{CustomerName}

The Customer Data prints ok including the &. But then the <style> tags etc are visible in the report. Its almost like the & breaks the <style></style> tag set?

The Field on the report has the "Is Styled Text" box checked. But makes no difference.

Removing the <Style> tags all prints OK. See attached. the xPath for the xml data file is /data

I have posted in the iReport forum those guys sent me here.

Thx

WalMillard

Code:
"<style pdfFontName=\"Helvetica-Bold\">Customer : </style>" + $F{CustomerName}
Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

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