AidanDiffey Posted December 11, 2006 Share Posted December 11, 2006 Hello All. Is there a list of tags that are suported by styled text in JasperReports? Also, is there any way to stop the net.sf.jasperreports.engine.fill.JRFillTextElementerroring when it throws a org.xml.sax.SAXException? I get the following:2006-12-11 15:45:54,679 WARN [net.sf.jasperreports.engine.fill.JRFillTextElement] Invalid styled text. org.xml.sax.SAXException: Tag <a> is not a valid styled text tag. at net.sf.jasperreports.engine.util.JRStyledTextParser.parseStyle(JRStyledTextParser.java:493) at net.sf.jasperreports.engine.util.JRStyledTextParser.parseStyle(JRStyledTextParser.java:457) at net.sf.jasperreports.engine.util.JRStyledTextParser.parse(JRStyledTextParser.java:140) at net.sf.jasperreports.engine.fill.JRFillTextElement.getStyledText(JRFillTextElement.java:453) at net.sf.jasperreports.engine.fill.JRFillTextElement.getText(JRFillTextElement.java:479) at net.sf.jasperreports.engine.fill.JRFillTextField.prepare(JRFillTextField.java:484) at net.sf.jasperreports.engine.fill.JRFillElementContainer.prepareElements(JRFillElementContainer.java:343) at net.sf.jasperreports.engine.fill.JRFillBand.fill(JRFillBand.java:311) at net.sf.jasperreports.engine.fill.JRFillBand.fill(JRFillBand.java:275) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillColumnBand(JRVerticalFiller.java:1302) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillDetail(JRVerticalFiller.java:631) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReportStart(JRVerticalFiller.java:228) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReport(JRVerticalFiller.java:128) at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:730) at net.sf.jasperreports.engine.fill.JRFillSubreport.run(JRFillSubreport.java:477) at java.lang.Thread.run(Thread.java:534) And then the styled text is displayed as raw html looking text. Cheers 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