jasper

variables in jasper report

Is there a way I could declare a variable of type HashMap which would call some java method to populate the HashMap? I want to have a hashmap in a report so depending on what the value of a certain field is, I would like to get the full description of it from an Hashmap. ...

Regarding report Generation using Jasper Reports

Hi, I have a requirement of generating report depending on the query & its associated columns. I should write 2 queries & based on flag conditions particular query has to be executed to generate report with its column data to be displayed on report. All this should happen with a single jrxml file. Please help me on this also please req...

Displaying Multiple Tables in a Page in Jasper Reports using ireports/Jasper Assistant

Hi all, I have a report to be printed / exported to PDF format. for that i am using jasper reports. I have 8 individual pages to be exported. so i prepared 8 separate design files. In that 6 pages are having more static text and mere direct mapping and remaining two pages consists of table like data. one page contains huge table so i f...

Subreports in Jasper Reports

Hi all, I have two tables to be printed in same page. Data for those tables will be supplied from a map from a custom data source. I need to implement it. I Google for implementing this task. At that time i came across sub-reports concept. but didnt get much tutorial for how to implement sub-reports. I have a idea of how to create su...

printing jasper report in pdf tabular form

hi all, how to print the report in tabular form to export for pdf format or html format. now i am getting the data in plain form. but i want to print the data in tabular form and export the report to generate pdf file or html file... any suggestions would be appreciate..... ...

Convert a JSP contained in a String to a Servlet programatically

Hi there, I have a JSP in a string variable in a servlet and I would like to compile it as a JSP myself (on the fly, programatically). Right now what I am doing is saving the string to a file and accessing that file (which generates the resulting servlet) - something like: // and He created JSP from mere html code final String jsp = c...

How to avoid null values in jasper reports

Hey guys, I have a field in my jasper report which has a expression value like $F{address_street1}+" "+$F{address_street2}+ " " +$F{address_state} + " "+$F{address_country}+ " "+$F{address_zip} My problem is that if any of the fields in here is null I get the null value between other things like 101 Main St*null*ILUnited States12345 ...

How to make Jasper iReport groups start on new page only when needed?

Hi, I'm using Jasper iReport (output to PDF), and I have a problem with a certain report: Inside the report I have defined a group. On average, each "instance" of that group only contains a small number of detail rows, so I don't want each of them to start on a new page, since it would be a waste of paper (the output is printed on pape...

HTML Tables in JasperReports

I wanted to accomplish what was asked in this post, but the question was never fully answered. I am importing statements from a legacy database that contains HTML inside of the entries. I do not have control of the architecture and must work within these boundaries. It renders the formatting (b, i, etc) but the tables are rendered in ...

Jasper reports PDF tagging.

I have heard that you can tag PDF documents generated using Jasper Reports but I haven't found any examples of how to do it. Does anyone here have an example of how you would tag a PDF document? I'm interested in tagging them to create accessible PDFs. Thanks ...

How to reference a list in a field object in jasper

I've got a datasource object that contains a Collection of other objects. For example I'm returning a Manager object that contains a List of Employees. I'm returning back JRDataSource object of type Manager to the actual jasper report. I'm unclear on how I can loop through the employees in the jasper report itself using the $F field t...

Java Printing API / Jasper Reports keep pipes and deleted temp files opened

Using JDK6u21, JasperReports 3.7.4 and Tomcat 5.5.30. Running "lsof" command on linux (debian) for my tomcat process is normal until the application start using the printing API / jasper reports. After the application tries to print something or simply listing the network printers these are returned for "lsof": java 2398 root 3931r ...

Comparision of Java Reporting tools

I was trying to prepare a comparision sheet covering available Reporting toos available in Java and their pros and cons. There are lot of Open Source tools available: JCCKit, JasperReports, BIRT, jCharts, DataVision, OpenReports etc.. though I could not find comparative study for these tools. Would like to know, if you could throw som...

JasperReport creation with image fails to create temporary file on Windows Vista, 7 or Server 2008

Hi, We are getting the following error while generating a Jasper report when running our app on some machines with Windows Vista, Windows 7 or Windows 2008: java.lang.RuntimeException: net.sf.jasperreports.engine.JRException: javax.imageio.IIOException: Can't create output stream! at br.com.oobj.relatorio.RRelatorioJasper.gerarJas...

Jasper report pdf empty last page

Hi, I'm using Jasper report for report generation. The report has multiple sub reports. Everything is generated fine. But the only problem is a blank page with header footer is generated at the end. Does anybody have any idea why this problem occurs & the solution for it? ...

Using a .jasper file present within a jar file

Hi, We are using jasper reports as our reporting tool. Earlier we were using relative paths for jasper files for filling report and it's working fine. Now, we want to create a new jar for all compiled jrxmls. i.e a jar containing all .jasper files for our project. Is there a way to access those .jasper files within a jar file while fi...

Jasperreports - Hide duplicate field in report

Hi, I'm creating reports using Java and JasperReports. What I've got is a query that outputs hotel details in order of Hotel Name. My problem is that, a lot of the time the Hotel Name field doesn't change from row to row. I want to find out how to only print each different hotel name once to stop the report printing unnecessary hotel n...

Error with generating JasperPrint in the client side

I am using JNLP which fetches my jar files to client. When I run the application, I am getting error with generating JasperPrint(NullPointerException). I can figure out the cause partially. It is because JasperPrint instance cannot be stored on client side due to access permission. Is there a way to generate JasperPrint on client side. ...

Jasper Exception on Jboss 5.0.1

I am getting the following exception when deploying my application to Jboss 5.0.1 : org.apache.jasper.JasperException: Unable to read TLD "META-INF/c.tld" from JAR file "vfsfile:/opt/jboss-eap-5.0.1/server/xxxx/deploy/jbossweb.sar/jstl.jar": java.io.IOException: Permission denied I found the following ticket: https://jira.jboss.org/b...