How to use multiple Data Sources in a Jasper Report?

0

Hi Guys,

I need to create a Jasper report with 3 sub reports. 2 sub reports use data source say DS1 and the other sub report use data souce DS2. When I tried to preview the main report, it throws a sql error. Can anyone help me how to acheive this?

Thanks,

Andy

jo.jasmine's picture
Joined: Apr 6 2015 - 8:50am
Last seen: 11 months 1 week ago

2 Answers:

0

In creating a Jasper report, if the main report and its subreports use different data sources, you can only use Java classes or write an actual url, username and password, instead of referencing the data source names.

Yet, esProc is helpful in solving this type of multi-data-source problems. For details, refer to http://blog.raqsoft.com/?p=4243 .

calculate.machine's picture
Joined: Jan 13 2015 - 11:40pm
Last seen: 3 years 10 months ago
0
kkumlien's picture
2728
Joined: Jan 22 2015 - 4:36am
Last seen: 2 weeks 7 hours ago
Feedback