【问题标题】:JasperReports Server: How to export report as html file using urlJasperReports 服务器:如何使用 url 将报告导出为 html 文件
【发布时间】: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 &amp;output=pdf in url I get a pdf file - 你在说什么应用程序?
  • @AlexK,请看更新
  • 你说的是 JasperReports Server 吗?
  • @AlexK 是的,我的数据来自 Jasper 报告服务器。
  • 结果如何:D?

标签: java html jasper-reports jasperserver


【解决方案1】:

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-02-09
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-08-14
    • 1970-01-01
    相关资源
    最近更新 更多