JasperReports的交互功能,不涉及JasperReports Server [英] Interactive features of JasperReports without involving JasperReports Server
问题描述
我开发了一些报告,使用Java编译jrxmls,填充报告并在IFrame(Jsp)中显示报告输出。即使我使用了表组件,我也看不到报告中的任何交互功能,问题我有:
还有其他选择我可以实现排序等交互功能,过滤等..,不使用JasperReports服务器?
同样的问题在 jaspersoft社区网站。在这里复制我的答案:
有一个样本 -
webapp-repo ( https://github.com/Jaspersoft/jasperreports/tree/master / jasperreports / demo / samples / webapp-repo )jasperreports项目附带的
- 其中JasperReports Server公开的大多数
交互功能可以实现
servlet容器。
运行示例:
下载 jasperreports 项目源文件( https://github.com/Jaspersoft/jasperreports)。如果你想要
稳定版本选择最新的标签
如果你没有它,请安装 apache ant / p>
使用以下内容构建主项目(包含build.xml的< jasperreports-project>的根目录): ant alljars
导航至< jasperreports-project> / demo / samples / webapp-repo并创建应用程序之战: ant war
将 jasperreports.war 部署到像Tomcat一样的servlet容器
I have a few reports that I developed, compiling jrxmls using Java, filling reports and displaying report output in IFrame (Jsp). Even though I used table components I can't see any interactive features in report, Question I have:
Are there any other alternatives that I can acheive interactive features like Sorting, Filtering etc.., without using JasperReports Server?
The same question was asked on the jaspersoft community site. Duplicating my answer here:
There is a sample - webapp-repo(https://github.com/Jaspersoft/jasperreports/tree/master/jasperreports/demo/samples/webapp-repo) that comes with the jasperreports project - in which most of the interactive features that JasperReports Server exposes can be achieved in a servlet container.
To run the sample:
Download the jasperreports project source files(https://github.com/Jaspersoft/jasperreports). If you want a stable version pick the latest tag
Install apache ant if you don't have it
Build the main project(the root of the <jasperreports-project> that contains a build.xml) with: ant alljars
Navigate to <jasperreports-project>/demo/samples/webapp-repo and create the application war with: ant war
Deploy the jasperreports.war to a servlet container like Tomcat
这篇关于JasperReports的交互功能,不涉及JasperReports Server的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!