Sample code using JasperSoft "JasperReports" library.

Based on tutorial at:

    http://www.tutorialspoint.com/jasper_reports/