【发布时间】:2013-10-26 01:57:50
【问题描述】:
我需要将报告导出到没有 jasper 报告视口的纯 html 文件。
如果我在 url 中执行 &output=pdf,我会得到一个 pdf 文件,&output=xls,一个 xls 文件,但 &output=html 将在 jasper 报告的视口中显示 html。 A也想要一个html文件。
我怎样才能做到这一点?我正在使用 http api。
来自文档
以下示例执行与上一节所示相同的报告,但还将 4012 作为输入控制参数传递并导出为 PDF 而不是 HTML:
http://<host>:<port>/<context>/flow.html?_flowId=viewReportFlow&reportUnit=
/supermart/Details/CustomerDashboard&customerID=4012&output=pdf
How to export JasperReport to HTML?
相关问题,但对我没有帮助。
【问题讨论】:
-
If I do &output=pdf in url I get a pdf file- 你在说什么应用程序? -
@AlexK,请看更新
-
你说的是 JasperReports Server 吗?
-
@AlexK 是的,我的数据来自 Jasper 报告服务器。
-
结果如何:D?
标签: java html jasper-reports jasperserver