jasper-reports

How do I create a chart in a Jasper Reports with a JavaBean collection data source?

I want to create a report of "students" in Jasper Reports. I am using a collection of "Student" Java Beans, creating a table with the student name, address and age. I want to add a pie chart to the end of the report, showing the distribution of ages among students. E.g. 15% below age 20, 50% ages 20-25 and 35% above 25. I managed to ac...

iReport problem

how we can use sum of field of first subreport in second subreport in ireport ...

jasper report height

I am creating a jasper report.In that default size of the report is A4 size.I want it to change the reports height dynamically .I am using HTML Export.So it is creating a html for A4 size(Even though content size is half of the A4 size).If the report content size is small I want the html page size also small. Is it possible to achieve?...

Large jasper report to Excel causes a corrupt file

I'm using jasperreports 3.5.3 for generating a large (but simple) report. Only a table with strings. When I list a big enough selection the generated file is corrupt. Excel alerts the user and some data is corrupted. But if I filter the data to show some rows including the offending one it's generated normally. Does someone have experi...

how to select and configure a JasperReports virtualizer?

We're using virtualizers with JasperReports 3.7.0 to avoid running out of memory with some large queries. Found one helpful article on this topic, and there's a brief description of virtualizers in The Ultimate Guide to JasperReports, but that's just a start. I'm trying to figure out which virtualizer is ideal, and having chosen one, how...

How to use version control with jasper Reports

We're about to start development of a number of reports using Jasper Server Reports version 3.7.0 CE. Does anyone have any recommendations as to how best to manage version control with this development, given that the structure of the report units is managed in the database and through either iReport or the web front end? In fact you c...

Subreport - passing parameter

how to pass paramater to sub report in jasper report i am able to pass the parameter to master report but m not able pass parameter to its sub report can any one give me the solution for it ? ...

Jasper Reports crosstab sorting with comparatorExpression

I'm trying to sort my dynamic columns in a cross tab according to some custom scheme. In the docs I found mention of comparatorExpression: Crosstab group bucket comparator expression. The result of this expression is used to sort the buckets, in ascending or descending order. If no comparator expression is specified, the natural order...

Passing JRAbstractSvgRenderer (JRRenderable) in fillReport

Hi, I'm passing a simple implementation of JRAbstractSvgRenderer (taken from the ireports pdf manual) as one of the parameters using JasperFillManager.fillReport. public class CustomImageRenderer extends JRAbstractSvgRenderer { @Override public void render(Graphics2D g2d, Rectangle2D rect) throws JRException { System....

How to send attribute from Database to dJ to make Report

/* * DynamicJasper: A library for creating reports dynamically by specifying * columns, groups, styles, etc. at runtime. It also saves a lot of development * time in many cases! (http://sourceforge.net/projects/dynamicjasper) * * Copyright (C) 2008 FDV Solutions (http://www.fdvsolutions.com) * * This library ...

Independent gradient background for charts in subreports

I have a dashboard-like report that shows several charts on one single page; these charts are divided into subreports. i managed to put gradient background on charts using customized render class in ireport. i am using the following code for each of the chart: public void customize(JFreeChart chart, JRChart jasperChart) { int offse...

Jasper Report with iReport: setNoDataMessage not working

I have a report that contains a pie chart within it. I would want the chart to be shown no matter if the query returns results or nothing at all. typically you just need to do the plot.setNoDataMessage() function, however since this is not exposed within iReport, i did it within the Customizer class just as the following: Cate...

JavaBeans and JasperReports

Hello, I'm using JasperReports with JavaBeans (I need to print reports in a application that uses Hibernate). Now I can work out Beans collections and use them in JasperReports, but sometimes I wonder if there is a way to access bean properties without it being a collection. What I mean is that I use JRBeanCollectionSource as a source fo...

Dynamically change the background color of an object.

I am using iReports for generating the PDF form. The requirement is to dynamically set jrxml object backgroundcolor. I tried to pass the color from java to jrxml. IT didn't work. Any other ideas? ...

How to access database of jasper server via API?

Can we access Database of Jasper server through its api? And do that allow us to make run time report? IF so how can we do that? Kind regards Sundhas ...

calling jasper file from servlet

hello friends i am new to jasperreport and dont know how to call jasper file from servlet me and my jasper file contains pie chart also plese help ...

JasperReports: default value instead of 'null'

Is there any way to set a default value to a field in a report? I have a lot of String fields in a report and would like them to display "0,00" when they're null. ...

How safe is apache Commons-javaflow while using jasperreports

Hi, I am using jasperreport and trying to pass an alternate report runner. • net.sf.jasperreports.engine.fill.JRThreadSubreportRunner: The initial thread-based implementation • net.sf.jasperreports.engine.fill.JRContinuationSubreportRunner: A Javaflow-based implementation I am using the second one (for the reason, it runs on tomcat se...

Printing Jasper report data in matrix format

Hi, I have a situation where I need to print data in matrix format. I have main report and subreport. From the main report I am passing a list (objects) to the subreport. Inside the subreport I have to print object data in tabular/matrix format as below: | Name1 | Name2 | Name3 | | Address1 | Address2 | Address3 | | Phon...

JasperReports: is it possible to use multiple data sources, or if not, to use collections in parameters?

It seems that the reporting idiom is that a report consist of a single list of items, with some additional data (parameters). Are there ways to include several unrelated lists in a report, or would this go against the idiom to such an extent that a different tool should rather be used to generate the output? Suppose, for instance, you h...