java - JTable contents and database table in one report -


i new jasprreports. learned jtable contents jasperreport using,

jasperfillmanager.fillreport(jasperreport, new hashmap(), new jrtablemodeldatasource(table.getmodel())); 

and oracle sql contents report using,

jasperfillmanager.fillreport(jasperreport, new hashmap(), connection); 

my question is, possible both of them in 1 report?

for example, have jtable contents following:

emp_no, emp_name, emp_salary 

which main content of table , want in header sql table department

department_no, department_name 

any ideas?

found workaround...

i getting contents of table database java using jdbc, , using params hashmap pass contents report.

got idea here.


Comments

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

aspxgridview - Devexpress grid - header filter does not work if column is initially hidden -

c# - How to execute a particular part of code asynchronously in a class -