Ghodhbani.taha Posted May 10, 2017 Share Posted May 10, 2017 Hi Jasper Community!I am trying to create a repport with database A which includes a subreport with database B, I readed a lot af topics in the Internet regarding multi data sources in jasper report but I did not found the solution.My Idea is to create a report A named MySubReport.jrxml which it points to database B (ORACLE), I created also two parameters, the first one id (java.lang.Integer) used to join with the table on the master reportand the second one named MyConnection (java.sql.Connection) used to build Connection by a java code later. Then, I created an other report named MyMasterReport.jrxml which it points to Database A (AS400)Finally, I coded a java Class that create as400 connection and passed it to the parameter MyConnection in order to generate a pdf file, the problem that when I compile MyMasterReport.jrxml I did not get the file MyMasterReport.jasper so I got a java Exception.Please help me to use multi data sources in report and sub report Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now