Take a look at the following two links.

http://www.ireport.com/docs/DOC-445298

http://www.ireport.com/docs/DOC-444132