JasperReports的交互功能,不涉及JasperReports Server [英] Interactive features of JasperReports without involving JasperReports Server

查看:193
本文介绍了JasperReports的交互功能,不涉及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容器。



运行示例:


  1. 下载 jasperreports 项目源文件( https://github.com/Jaspersoft/jasperreports)。如果你想要
    稳定版本选择最新的标签


  2. 如果你没有它,请安装 apache ant / p>


  3. 使用以下内容构建主项目(包含build.xml的< jasperreports-project>的根目录): ant alljars


  4. 导航至< jasperreports-project> / demo / samples / webapp-repo并创建应用程序之战: ant war


  5. 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:

  1. Download the jasperreports project source files(https://github.com/Jaspersoft/jasperreports). If you want a stable version pick the latest tag

  2. Install apache ant if you don't have it

  3. Build the main project(the root of the <jasperreports-project> that contains a build.xml) with: ant alljars

  4. Navigate to <jasperreports-project>/demo/samples/webapp-repo and create the application war with: ant war

  5. Deploy the jasperreports.war to a servlet container like Tomcat

这篇关于JasperReports的交互功能,不涉及JasperReports Server的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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