hi there, the problem if i understood correctly, open up your subreport property; switch to 3rd tab call "subReport(other)" provide the valid subreport path to the expression. and below you create a new variable and will prompt out another mini window, put any name for variable and pass the $P{REPORT_CONNECTION} into the expression. then in your subreport create a new parameter which reference the variable you created earlier with same name & data type. to view sample and wanna find out more on JRXmlDataSource function, i suggest you to download the jasperreport projects, inside would have all the jrxml for your reference,jasper API documentation as well as the in-memory database. finally, jasper offer quite a number of export options to different format and by default it comes prepackaged with the report viewer which is also a java app.