views:

394

answers:

2

Hi,

How to called stored procedure from Jasper Report?

Best Regards, Vipul Gupta

A: 

Here you go...

Vishal
A: 

JasperReport doesn't support calling stored procedure/function directly from his SQL datasource. The best way I found to overcome that limitation is to create a Java bean that calls the stored procedure (via JDBC or Hibernate) and returns a collection of objects which represent the result set. If you're using iReport, just change the Data Source Expression to use that Java bean. There's good section on data sources in the (not free) iReport manuals.

Nik