walmillard Posted September 23, 2009 Share Posted September 23, 2009 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 /dataI have posted in the iReport forum those guys sent me here.ThxWalMillardCode:"<style pdfFontName=\"Helvetica-Bold\">Customer : </style>" + $F{CustomerName} Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now