jasper-reports

jaspersoft how to display values from list

感情迁移 提交于 2020-01-24 23:47:12
问题 I'm using iReport 5 to generate PDF. I got few lists containing some objects to display, and it's the easy part. I got stuck on displaying values from List<String> . I pass it as a parameter, I configured data source correctly, but have no idea how to name the string. When I got list of objects it's easy - if you want to get field xxx from obcject you use $F{xxx} and it works, but how to display a object? I tried $F{_this} , but got error saying that it's non recognizable. 回答1: You were close

JasperReports: Print a report directly at client side printer

一笑奈何 提交于 2020-01-24 14:01:09
问题 I am using JasperReports for generating the reports. My requirement is to print a report directly at client side printer. I tried JasperPrintManager.printReport(JP_Print, false) method for printing the report but report going to the Server side printer. Is there any way to do this using JavaScript or Java ? 来源: https://stackoverflow.com/questions/20015401/jasperreports-print-a-report-directly-at-client-side-printer

Why does maven build fails on dowloading itext from incorrect repo?

﹥>﹥吖頭↗ 提交于 2020-01-24 09:10:46
问题 I am downloading certain dependency from external repository. So I have added following repository tag to my pom.xml <repository> <id>cdatoolsrelease</id> <name>cdatools.com-releases</name> <url>http://www.cdatools.com:8081/artifactory/ext-release-local</url> </repository> <repository> <id>cdatoolssnapshot</id> <name>cdatools.com-snapshot</name> <url>http://www.cdatools.com:8081/artifactory/libs-snapshot-local</url> </repository> Everything works well. I can see my required dependencies

Passing parameters through the url

懵懂的女人 提交于 2020-01-24 08:26:25
问题 I am able to access a report, that I created with ireport. I am using an url which let's me have a look at my report from the JasperServer interface. It looks like following: http://localhost:8080/jasperserver/flow.html?_flowId=viewReportFlow&standAlone=true&_flowId=viewReportFlow&ParentFolderUri=%2Freports%2Fsamples%2FTest&reportUnit=%2Freports%2Fsamples%2FTest%2FEinReport&j_acegi_security_check&j_username=jasperadmin&j_password=jasperadmin My question is: can one pass parameters through

Problems to access a report in a jar file

大兔子大兔子 提交于 2020-01-23 01:32:05
问题 I have a jar application that contains several reports (files .jasper ) and the way that I get the path of the report is: getClass().getResource("/reportes/mireporte.jasper").toString(); but when I execute I get the next error: FileNotFoundException although the report is within the jar file when I open it with the winrar. My questions are: Is this the way to get the path of a report in a jar files? Is it possible to open reports that are within of a jar file? 回答1: Why are you converting the

Replace JasperReport iText 2.1.7 with latest iText 7.0.1

笑着哭i 提交于 2020-01-23 01:26:30
问题 We are using JasperReport 6.1.0 which has a dependency to com.lowagie:itext:jar:2.1.7.js2. It looks like iText 2.1.7 has IP issue, and iText is asking all users to use the latest version which requires a commercial license. So we would like to buy iText license. Now iText latest version is 7.0.1. I tried did below steps to replace JasperReport's iText 2.1.7 with latest iText 7.0.1: 1. Exclude default itext 2.1.7 dependency in pom.xml <dependency> <groupId>net.sf.jasperreports</groupId>

Jasper Reports: JRBeanCollectionDataSource cannot be resolved to a type

你。 提交于 2020-01-22 12:35:48
问题 I'm building a chart in iReports and when I compile in Eclipse I get the following error: net.sf.jasperreports.engine.JRException: Errors were encountered when compiling report expressions class file: 1. net.sf.jasperreports.engine.JRBeanCollectionDataSource cannot be resolved to a type value = new net.sf.jasperreports.engine.JRBeanCollectionDataSource(((java.lang.String)field_chartData46xAxis.getValue())); //$JR_EXPR_ID=11$ <----------------------------------------------------> 2. net.sf

How to prevent repetition of data display in report?

一个人想着一个人 提交于 2020-01-21 15:20:27
问题 Sample Report - Design Sample Report - Preview XML Code File <?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.sourceforge.net/xsd/jasperreport.xsd" name="report2" pageWidth="595" pageHeight="842" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid=

How to prevent repetition of data display in report?

爱⌒轻易说出口 提交于 2020-01-21 15:20:19
问题 Sample Report - Design Sample Report - Preview XML Code File <?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.sourceforge.net/xsd/jasperreport.xsd" name="report2" pageWidth="595" pageHeight="842" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid=

How to create multiple charts of same type but with different dataseries using JRBeanCollectionDatasource in Jasperreports

跟風遠走 提交于 2020-01-21 11:11:06
问题 I have to create multiple XY-line charts with different dataset using same chart report template and I also have to use JRBeanCollectionDatasource for it. Requirements: 1) Should be done using JRBeanCollectionDatasource. 2) Have to use the same chart report template to create multiple charts. 3) Number of charts are not fixed (Here I have problem giving names to Report Parameter in java). Because in ReportParametersMap, they can only have unique key name . Java: Coordinates.java private