本文介绍了JasperReports服务器:HTML组件问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在 JasperReports 5.1 中有一个包含HTML组件的报告。
I have a report with HTML component in JasperReports 5.1.
它在 iReport 中工作正常,但在 JasperReports Server Professional 5.0 中无效。
Its working fine in iReport but not working in JasperReports Server Professional 5.0.
org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invalid content was found starting with element 'hc:html'.
One of '{"http://jasperreports.sourceforge.net/jasperreports":component}' is expected.
我尝试在 JasperReports.properties 文件中添加以下属性但是它不起作用:
I tried to add the following properties in JasperReports.properties file but it didn't work:
net.sf.jasperreports.extension.registry.factory.htmlelement=net.sf.jasperreports.extensions.HtmlElementExtensionsRegistryFactory
net.sf.jasperreports.extension.registry.factory.htmlcomponent=net.sf.jasperreports.components.html.HtmlComponentExtensionsRegistryFactory
请建议我该如何解决这个问题。
Please suggest how can I fix this.
推荐答案
我的一个同事提出了解决方案并且有效。
One of my colleague suggested the soluntion and it worked.
复制
jasperreports-htmlcomponent-5.0.1.jar from <JaspersoftiReport-5.1.0>\ireport\modules\ext
粘贴到
Web-Inf\lib folder of jasperserver
谢谢
Ankush
这篇关于JasperReports服务器:HTML组件问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!