ireport

Jasper reposts can't compile an expression that contains JRBeanCollectionDataSource, why?

不问归期 提交于 2019-12-11 08:41:25
问题 I am creating a report that has a subreport with ireport. The data source for both is java beans. The problem is that when I create the data source expression for the subreport, I will use: new JRBeanCollectionDataSource($F{actions}) which is found on many docs. When I compile I get: JRBeanCollectionDataSource cannot be resolved to a type I don't get it, it's a JasperReports class... how can it be missing. I even controlled the settings and the Jar with the class is in the classpath. What

Grails IReport Jasper returns blank page

你离开我真会死。 提交于 2019-12-11 07:39:06
问题 I have this problem having to display my jasper report on my grails application. On the application I've installed the jasper plugin using the command: grails> install-plugin jasper I have created sample.jrxml having this context: <?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://jasperreports.sourceforge.net/jasperreports http://jasperreports

How can I build a table of contents in iReport/JasperReports?

会有一股神秘感。 提交于 2019-12-11 07:28:29
问题 We use iReport to enable our customers to generate catalogs for print for their products. This process works GREAT. One of the things we've struggled with is how to create a table of contents for these product catalogs. I decided to use the Scriptlet functionality to give this a shot. Note that our reports are all master-detail in nature, in that there is a master report and a subreport. At first, I attached the scriptlet to the master report, and tried to find a way to collect all of the

iReport error SQLException: Database not selected yet

。_饼干妹妹 提交于 2019-12-11 04:54:36
问题 I'm working with iReport 5.6.0 to build some report templates. I'm having an issue when trying to retrieve some data from the DB. The DBMS is Informix and the procedure I'm doing is the following: 1. Add the Informix JDBC driver which I downloaded from Maven Central ( com.ibm.informix:jdbc ) 2. Create a datasource with the driver and the JDBC's URL. Test the connection and it's successful 3. In the Report query window I write a query and in the result pane (at the bottom) I get and error as

Is there a way to set the starting page number in JasperReports?

孤人 提交于 2019-12-11 04:08:28
问题 I have a reporting system where occasionally there will be multiple JasperReports in a row (e.g. a regular report, and an index report at the end). If the regular report is 21 pages long, then I need the subsequent report to start on page 22. Is there a simple way to tell a JasperReport what page number to start on? I can do this in a roundabout way, but I feel like I am overlooking something simple. Google and Bing searches have not yielded any answers for me. Thanks for any help you can

How to print a jasper report in 3 exemplar with little changes?

只谈情不闲聊 提交于 2019-12-11 03:06:33
问题 I've created a jasper report with iReport and I can print it perfectly. I need to print 3 examples of it (original example, client example, department example) with very few changes, for example changing a label in the report. I pass PRINT_FOR as parameter to iReport. Does any body know how to approach this goal? HashMap parameters = new HashMap(); String option = "C:\\option.jasper"; JRDataSource beanDataSource = reportMapper.getDataSource(); JasperPrint jasperPrint = JasperFillManager

is it possible to convert .jasper into .jrxml? [duplicate]

瘦欲@ 提交于 2019-12-11 02:46:54
问题 This question already has answers here : how to decompile .jasper files into .jrxml files (2 answers) Closed 5 years ago . I accidently ended up corrupting my .jrxml file but fortunately before that I had a working .jasper version of the same file. Is there anyway to kind of reverse the .jasper to retrieve my .jrxml? I spent almost whole day today to format my report and all of sudden it's gone. Would really appreciate any ideas. Edits: I am using iReport 3.1.1 and I don't see any option of

Dynamic width for report in ireport 4.0.1

爱⌒轻易说出口 提交于 2019-12-11 02:27:28
问题 I have designed a cross tab report in ireport4.0.1. because of cross tab i dont know the width for the report. Is there any option to set width according to the data it contains? 回答1: Well my answer may not be the recommended one by jaspersoft guys, but what i would do is calculate the required width at run time. then put the value in the width option of the report that is in my JRXML which is basically nothing but an XML (using standard file operations). Then i ll compile it to get jasper

Preserve XML comments in iReport .jrxml files?

坚强是说给别人听的谎言 提交于 2019-12-10 14:45:01
问题 When I save the XML file in iReport, all comments are deleted. How can I include (or preserve) comments in JRXML files? 回答1: There is no way to preserve comments; you'd have to log a bug against iReport. You can work around the issue by using callouts: <property name="ireport.callouts" value="##Fri Nov 12 23:12:35 GMT-03:00 2010\\ncallouts.1.text=Hello World!\\ncallouts.1.bounds=294,80,181,73"/> 回答2: If you can't save comments you an use CallOut component form the iReport, With CallOut you

Null 'key' argument error

穿精又带淫゛_ 提交于 2019-12-10 12:50:06
问题 I'm using IReport 3.5.0 and my java GWT application uses the compiled .jasper file, to create a report. I'm creating the datasource in the java application and use fillReport() method to fill the report. It works fine, it fills the fields that I have defined both in the .jrxml and Java application. However, I want to use those fields to create a pie chart, and it doesn't work. I give my working fields as key and value expressions for the chart, but when I run the application, it gives the