Jasper报告HTML组件 [英] Jasper Reports HTML Component

查看:116
本文介绍了Jasper报告HTML组件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我设计了一个简单的报告放置和HTML调色板(iFrame)
当我运行报告时,我得到了这个例外:

I have Designed a simple report putting and HTML palette into it (iFrame) When I run the report i get this exception:

java.lang.ClassNotFoundException: net.sf.jasperreports.components.html.HtmlComponent

我检查了rar文件,里面没有net.sf.jasperreports.components.html.HtmlComponent类。

I check the rar file and there is no net.sf.jasperreports.components.html.HtmlComponent class in it.

我该怎么办?

推荐答案

您必须包含HTML组件的Jar。
可以使用> ant jar命令从 / demo / samples / htmlcomponent 构建JAR。您也可以从Jaspersoft Studio下载中获取jar。只需在下载后搜索 htmlcomponent.jar

You have to include the HTML Component's Jar. The JAR can be built from the /demo/samples/htmlcomponent either using the >ant jar command. You can also grab the jar from the Jaspersoft Studio download. Just search for the htmlcomponent.jar once you've downloaded it.

这篇关于Jasper报告HTML组件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆