【问题标题】:How to embed Jasper report into web application using iframe如何使用 iframe 将 Jasper 报告嵌入到 Web 应用程序中
【发布时间】:2015-11-19 12:07:45
【问题描述】:

我使用 Jasper Server 生成了一些报告。现在我想将其嵌入到我的 Web 应用程序中。我已经看到我们可以使用 API 调用嵌入报告,也可以使用 iframe。我认为 iframe 将比 API 调用更快,我想在我的应用程序中使用它。

如何使用 iframe 嵌入来自 jasper 服务器的报告?它只是使用报告链接还是我需要将任何参数与 url 一起传递。请在这方面帮助我。

提前致谢。

【问题讨论】:

  • wiki 提供了有关使用 HTTP API 在 iframe 中嵌入报告的详细信息

标签: iframe web web-applications jasper-reports jasperserver


【解决方案1】:
YOUR_INSTANCE/flow.html?_flowId=viewReportFlow&reportUnit=REPORT_LOCATION&decorate=no&j_username=jasperadmin&j_password=jasperadmin&viewAsDashboardFrame=false&PARAM_1=PARAM_1_VALUE&PARAM_2=PARAM_2_VALUE

把它放在 iframe 中。
YOUR_INSTANCE - 您的服务器实例,用于从 Web 浏览器访问服务器。
REPORT_LOCATION - 只需从服务器运行报告。您可以在地址栏中找到“reportUnit”的值。
PARAM_1 - 报告参数名称。这应该是您在输入控制器中创建的确切名称(在 jasper 服务器中)
PARAM_1_VALUE - 参数值。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2013-09-23
    • 1970-01-01
    • 1970-01-01
    • 2014-01-10
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多