Monday, December 13, 2010

Empty Subreport in jasper report

In  case your subreport gives empty/ blank screen, chances are it may be due to datasource problem.Remember to add the following in subreport tag(in case of empty datasource)-



and it should look somewhat like this -

Tuesday, December 7, 2010

Exception - java.lang.NoClassDefFoundError: org/apache/poi/ss/usermodel/Font

If the exception as -
org.springframework.web.util.NestedServletException: 
Handler processing failed; 
nested exception is java.lang.NoClassDefFoundError: 
org/apache/poi/ss/usermodel/Font 
 
shows, adding the poi jar from http://poi.apache.org/download.html 
helps to get going.

Wednesday, December 1, 2010

Creating Interactive Jasper Reports using parameters and variables in iReport

To create an interactive jasper report using iReport, we can use parameters in jasper report.

1. Create a new parameter -


2. Use the parameter in the query -


3. Use the required variable in detail band to display a list.