jasper-reports

Jasper compiler error when using SUM method

穿精又带淫゛_ 提交于 2021-02-18 17:14:47
问题 I'm using the Jasper built-in SUM function in a cell of a table. It should sum the content of other cells (in the example I'm using a single cell, but the output is pretty much the same adding multiple cells). The jrxml is: <jr:column width="49" uuid="e6595bc8-b46e-4bbe-85a2-7ea9526fce83"> <property name="local_mesure_unitwidth" value="pixel"/> <jr:columnHeader style="Table 2_CH" height="20"> <staticText> <reportElement x="2" y="0" width="47" height="20" uuid="af5e8305-5cdf-41ad-b827

How to draw vertical line in iReport?

爷,独闯天下 提交于 2021-02-18 05:07:11
问题 I am using iReport 3.5.2 ? to design a report. I have a subreport where I need to have a table. To build the table I have drawn horizontal lines for rows. However I am not finding any option to make the line vertical so that I can make the columns. Could anyone please suggest how to do it. 回答1: You can make your line Vertical of Horizontal as you like By changing width and height properties of the line For example If you want to draw a Vertical Line <line> <reportElement x="0" y="0" width="1"

Setting a number format pattern in iReport 5.7.0 to retain 3 digits after the decimal point

余生长醉 提交于 2021-02-17 05:37:25
问题 I am using iReport 5.7.0 to generate JasperReports 's report. I have set the pattern #####0.000 on a field with a Double value. I have expected 3 decimal places But actually Only one zero after the decimal point is displayed if the number has no decimal part . i.e , what I get `4.56678 =>4.566 4.0 =>4.0 4.1 => 4.000 What I want 4.5667888 =>4.566 4.0 =>4.000 4.1 =>4.000 ` Any help please ? 回答1: Try following at the place where you want a particular decimal format. Say you have a field into

OpenERP Jasper Reports import external library

谁都会走 提交于 2021-02-17 05:15:47
问题 I use OpenERP with Jasper Report module. The problem is to get amount of generated pages in words. So I found the solution: import in iReport my own library in *.jar file and use some methods from it. But I get some problems. Аpparently, iReport's classpath to libraries didn't used in Jasper Reports in OpenERP and I always get 'Unable to resolve class' exception. I tryed to copy *.jar in 'jasper_reports/java/lib' folder, but it ineffectually. Maybe someone faced to this problem? And the

Jasper Page break on New Field/Variable

谁说胖子不能爱 提交于 2021-02-16 20:09:10
问题 I am working on a jasper report, and I am trying to figure out a way for the report to page break on a variable change. The variable is actually a Field, and I put the value of the field in a variable. Now, the Jasper Reports website has an example on how to break it by count like this <groupExpression><![CDATA[new Boolean($V{BreakGroup_COUNT}.intValue() > 5)]] ></groupExpression> However, I am not sure of any way to compare the previous or next value and breaking after that. 回答1: You just

Jasper Page break on New Field/Variable

半世苍凉 提交于 2021-02-16 20:07:46
问题 I am working on a jasper report, and I am trying to figure out a way for the report to page break on a variable change. The variable is actually a Field, and I put the value of the field in a variable. Now, the Jasper Reports website has an example on how to break it by count like this <groupExpression><![CDATA[new Boolean($V{BreakGroup_COUNT}.intValue() > 5)]] ></groupExpression> However, I am not sure of any way to compare the previous or next value and breaking after that. 回答1: You just

New page for every group in iReport

|▌冷眼眸甩不掉的悲伤 提交于 2021-02-16 18:22:35
问题 I'm using iReport 5.6.0 and i want to create new page for each group. For example i have table people_i_know : Id| Name | State 1 | Tom | friends 2 | Jim | friends 3 | Mike | enemy 4 | Alex | friends 5 | Julie| enemy My SQL should be like this: SELECT Id,Name,State FROM people_i_know GROUP BY State; And in this example iReport should give me two pages with detail band like this: This should be on page 1. 1 | Tom | friends 2 | Jim | friends 4 | Alex | friends And this should be on page 2. 3 |

Jasper Report subreport issue

你。 提交于 2021-02-16 14:55:17
问题 I have a master report which contains a lot of information and I need to add a Sub-Report. When I run JUnit Test of Master Report, an exception is thrown: net.sf.jasperreports.engine.JRRuntimeException: net.sf.jasperreports.engine.JRException: The subreport is placed on a non-splitting band, but it does not have a rewindable data source. at net.sf.jasperreports.components.table.fill.FillTable.rewind(FillTable.java:392) at net.sf.jasperreports.engine.fill.JRFillComponentElement.rewind

Async Jasper report gives ALL data when changing parameter name

╄→尐↘猪︶ㄣ 提交于 2021-02-11 15:50:48
问题 I am working on an existing async jasper report in an application wherein the Java backend sends a parameter "employee_id" to the jasper server. Corresponding .jrxml file containing this parameter name "employee_id" executes the SQL query to fetch the results. Now, as per the new functionality, there is a scenario when the application can send more than 1000 employee ids. So, in the Java side, I am creating sublists each containing at the max 1000 elements. e.g. first sublist has param name

How to split a frame in several pages with jasper?

与世无争的帅哥 提交于 2021-02-11 15:10:37
问题 I use jasper soft 6.6. I have several detail bands. Inside each detail band, I have several frames following each others. Inside each frame, there are other frames. Inside each frame, there are text-fields or list. My problem is that if the frame size exceeds a certain treshold, the frame get to a new page instead of filling the rest of previous page and finish on the new page. I tried to use: - float on all elements (frames and textfield) - isPrintWhenOverflow=true (frames and textfield) -