I am using Jasper Report [ver 4.0.2] for the first time and was going through one of the tutorials.
The code goes like this
Well the problem is
1. The exported pdf file is fine and contains all the records from database.
2. html and xls file doesn't contain records but the head and footer is present and the line separating the records are also present.
Basically, formatting is present except for actual database records.