问题标签 [jasper-plugin]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
383 浏览

grails - Grails JR 报告呈现为 HTML

我正在使用JasperReports插件来生成复杂的报告。它适用于pdf文件,但要求是在下载 pdf 之前以 html 格式显示准确的 pdf 报告预览。

我只是想使用"inline=true" "_format=html". 当它渲染 html 时,PDF 和 HTML 有很大的不同。

html格式的报告如下所示:

在此处输入图像描述

并以pdf格式:

在此处输入图像描述

您能否建议我如何在html中显示确切的pdf版本?

0 投票
0 回答
785 浏览

grails - iReports 和 grails。设置javabeans数据源和连接

我在配置 iReports 时遇到了一些问题,我正在使用iReport4.8.0(我之前尝试iReport4.7.1过并且发生了同样的问题)和grails ggts 3.0.0.

我在一个名为 Consultas 的包中有一个名为 Consulta 的域类,我想列出它们并使用 ireports 创建一个报告,我按照我在书中找到的步骤进行操作:从新手到专业的 Groovy 和 Grails 第 9 章它说从 groovy 类创建报告非常容易(理论上是这样),您只需创建一个包含已编译类的 jar 并将其放在报告 lib 目录中,然后从数据连接中选择“javabeans 设置数据源选项”,其中唯一的字段要填写的是名称,它说将其他设置为空白,当我测试它时会出现一个错误弹出窗口,说 ClassNotFoundError,我确定有一些缺失的步骤,但我不知道是哪个。

在我的咨询控制器中,我有以下代码:

我认为jassper插件还可以。

0 投票
4 回答
25140 浏览

jsf-2 - java.lang.IllegalStateException:调用 JasperReport 时已为此响应调用 getOutputStream()

我正在 JSF 2 中尝试 iReport/JasperReport 但是在生成 PDF 时出现此错误。我搜索并发现了一些类似的问题和解决方案,但没有任何效果。很抱歉再次发布同样的问题。但是我尝试了所有可能的解决方案,但没有一个对我有用。请帮忙

以下是函数

和 XHTML 代码:;

我的 POM 文件:

请帮忙

我没有在项目的其他任何地方使用函数 getOutputStream()。

0 投票
1 回答
2098 浏览

java - Struts 2, JasperReports plugin: How to set file name for generated report

The plugin does not seem to work properly.

This is my action declared in the struts.xml:

So for some format (HTML, XML), the name of the output file is not what it should be (xxx.[format]) but (the name of the action).action !!

Why? Can something be done?

Question 2 : For some format (PDF, HTML, XML) the file appears directly in the good application, for the others there is a prompt asking if you want to open it or record it. The problem with the HTML et XML formats is that they open directly in the browser instead of the site... So is it possible that the prompt box appears all the time (whatever the format). If not, is it possible to ask to open the file in another tab of the browser?

0 投票
2 回答
726 浏览

grails - 导出的文件 excel 或 pdf 需要页眉

我有一个 Web 应用程序,我需要将列表导出为 .xlsx 或 .pdf 格式。在导出页面时,页面应包含公司的页眉以及列表。这怎么可能?我在 grails 中做这个项目。是否有任何插件可以使这成为可能。我已经在 Grails 中尝试过导出插件,它没有那个功能。

0 投票
1 回答
246 浏览

grails - 安装jasper插件后运行时出错

我有一个问题,当我安装 grails jasper 时,我收到了这个错误:

错误 错误运行脚本 run-app -verbose:加载程序约束违规:加载程序(先前为名称为“org/w3c/dom/TypeInfo”的不同类型启动加载的实例

这已经在 jira 中,但仍未解决。请问有人知道怎么做吗?

http://jira.grails.org/browse/GPJASPER-50

0 投票
1 回答
1631 浏览

grails - Unable to pass a variable parameter to jasper report

So, I have created a simple CRUD app using groovy on grails and I want to use jasper reporting plugin to get some simple reports on the database. I have set up a simple G:select to pick from a drop down list, and hitting the PDF icon I am bringing back a blank page. gsp is below

and then the jrxml looks like the below

ideas????

0 投票
2 回答
318 浏览

grails - Grails Jasper 插件错误

我已经为 Jasper 1.6.1 安装了插件,并且可以在我的插件目录中看到它。然而,根据http://grails.org/plugin/jasper,它说当你运行你的应用程序时,通过转到 (app-url)/jasper/demo 来测试插件。当我尝试这样做时,它不起作用。我很确定我遗漏了一些东西,但文件没有说。请帮忙。

0 投票
1 回答
701 浏览

grails - Grails 插件:Jasper 插件 - 没有此类报告规范错误

尝试运行 Grails Jasper 插件演示页面中的任何演示报告时出现错误。我想我缺少一些配置,但插件文档没有提供更多细节。

0 投票
1 回答
607 浏览

grails - Grails Jasper 报告:找不到表问题

我希望使用 Jasper Reports 生成一些填充了 MySQL DB 数据的文件。到目前为止,我已经创建了一个包含几个字段的简单报告。它使用 jdbc:mysql 数据源。为此,我使用了 Jaspersoft Studio,并且报告在那里正常工作。

问题是,当我尝试使用 grails jasper 插件生成报告时,出现以下异常:

这是我在应用程序页面上得到的:

插件中的数据源似乎有问题。为什么org.h2.jdbc使用这个?为了从我的 grails 应用程序运行报告,我需要配置什么?