A Generic JRDataSource for JasperReports

It is possible to pass data to JasperReports templates via a custom data source, which implements JRDataSource interface. Reporting engine iterates over report data collection with boolean next() method, and evaluates field expressions by asking value for them from the data source instance with calling Object getFieldValue(JRField) method. One most probably implements custom data sources […]