jasper-reports

JasperReports: Subreport renders multiple times, causing duplicate pages

我怕爱的太早我们不能终老 提交于 2020-01-15 07:37:28
问题 I am using JasperReports to generate a graph and table for a web application using two separate queries. My main JRXML generates the graph, and I include a subreport in the Detail band to generate the table. However, when it renders, the subreport seems to get rendered multiple times (12 to be exact), which results in the generated report being the same graph and table on 12 pages (exact duplicates of each other). This happens both through the online application and iReport . My main JRXML ,

java.lang.NoSuchMethodError:In jaspereports in struts2

旧时模样 提交于 2020-01-15 07:01:23
问题 Trying to integrate jasperreports with struts2....and i am very new to jasperreports ....designed reports using eclipse report designer here is my jrmxlЖ <?xml version="1.0" encoding="UTF-8"?> <!-- Created with Jaspersoft Studio version 6.1.0.final using JasperReports Library version 6.1.0 --> <!-- 2015-08-24T16:05:04 --> <jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports

CoffeeScript, Node.js, MongoDB and JasperReports, is it possible?

依然范特西╮ 提交于 2020-01-15 06:10:23
问题 I just realized a JSF (web JavaScript application) that connect to a MongoDB database and generate a report (PDF) thanks to JasperReports Library (so with a .java file). Is it possible to do the same thing with a web application in CoffeeScript and Node.js? I am really new to this, so I don't know where to start. For example : Is it possible to run a .java thanks to Node.js or CoffeeScript? 回答1: JSF is actually a JavaServer Faces application, not a JavaScript application. JavaScript (which

cannot be resolved to a Type Jaspersoft Studio

和自甴很熟 提交于 2020-01-15 04:56:07
问题 Using jaspersoft Studio 6.1.1 What i'm trying to achieve is to transform the numbers i get to the Roman format, and for that i added a .jar that i created to do the job, the problem is, when i'm trying to use the functions in my .jar, i get the errors below: net.sf.jasperreports.engine.JRException: Errors were encountered when compiling report expressions class file: 1. RomanNumeral.roman cannot be resolved to a type value = new RomanNumeral.roman(1); //$JR_EXPR_ID=8$ <----------------> 2.

JRXML - Eliminating repeated header on the bottom

纵然是瞬间 提交于 2020-01-15 03:45:18
问题 We've got a problem when printing some PDF reports using JasperReports. These reports are basically a breakdown of all the sales made to a specific client over the course of the years. We take information from a DB, transform it using Java, and print the reports in PDF. The problem is, in some rare cases, some headers appear repeated at the bottom of each page: Ideally, we should be able to omit that loose header and keep only the one on the new page, but I can't seem to do it, at least via

jasperreports subreport not splitting

泄露秘密 提交于 2020-01-14 14:28:09
问题 I have a jasper-report that has several subreports. Most of them work fine, but for some reason one of my subreports does not split if it becomes long enough to reach the end of the page, instead it jumps back up to the top of its detail section and continues writing there, overwriting the previous text. I can't see any difference between this subreport and the one that work right. Currently my project uses jasper-reports 1.2.5, but I tried upgrading to 4.0.1 (just for this one report) and

is it possible print element only when its detail band is the last on page?

喜欢而已 提交于 2020-01-14 14:14:51
问题 Is it possible, to get a condition, that I can print an element only when its detail band is the last on page in Jasper Reports? We can have variable saying record number on the page. But how we get the calculated total record on each page? 回答1: This is done with the "reset type" on a variable <?xml version="1.0" encoding="UTF-8"?> <jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http:/

Printing is not working in tomcat, when i start server with services.msc(From client side we could not print )

这一生的挚爱 提交于 2020-01-14 14:08:11
问题 I am using JasperReports 1.3.1 to print the report. I am sing eclipse and tomcat for development purpose. In eclipse, when i run the application, the below code will show the listed printer devices and print button. If i click the print button, the report is printing by selected device. PrintRequestAttributeSet printRequestAttributeSet = new HashPrintRequestAttributeSet(); printRequestAttributeSet.add(MediaSizeName.ISO_A5); PrintServiceAttributeSet printServiceAttributeSet = new

Hide text field if subreport is empty

时光怂恿深爱的人放手 提交于 2020-01-14 12:55:33
问题 I am creating a report in Jasper with four parts. Each part consists of a text field as the header and a subreport. The subreport can be empty. If it is empty it is hidden using Remove Line When Blank . This works so far. Now, the corresponding header text field should be hidden too if the subreport is hidden. I have tried many things but couldn't come up with a solution. E.g. using Print When Expression : new Boolean ($P{otherField}.read() != -1) . This never showed the header. As well I

The method JasperFillManager.fillReport () throws java.io.Exception

巧了我就是萌 提交于 2020-01-14 06:08:05
问题 I have the following exception when I launch my script in the development environment (SunOS 5.10 i86pc Solaris), I tried searching on google for hours trying various workarounds suggested but do not solve the problem. In fact, trying to use super-user when I launch my script the report is generated, whereas with a normal user I get the following exception and the report is not generated. Caused by: net.sf.jasperreports.engine.JRRuntimeException: java.io.IOException: Problem reading font data