v.hisamatsu Posted August 31, 2020 Share Posted August 31, 2020 Hi,I have a subreport with a crosstab (within the summary band) which I placed in the detail band of the master report.Then, I added a chart in the subreport but I can't see it in my master report when I do a preview. I already tried removing and readding the subreport, but still I can't see the chart.Any suggestions on what can be wrong?Thanks,Vanesa. Link to comment Share on other sites More sharing options...
vchiem Posted September 2, 2020 Share Posted September 2, 2020 From Jaspersoft Studio guide:For JasperReports to retrieve data and fill the subreport, you have to set the subreport data source. The followingoptions are available:• Use the same connection used to fill the master report – Select this to use the same JDBC dataadapter for the master report and the subreport. The JDBC connection is passed to the subreport to executeitUse another connection – Select this to specify a different JDBC data adapter for the subreport.• Use a JRDataSource expression – Select this to use a JRDataSource object to fill the subreport.• Use an empty datasource and if you have any parameters then:To pass parameters from the master report to a subreport, you create a set of parameter name/object pairs thatfeed the parameters map of the subreport. To do this, click the Edit Parameters button on the Subreport tab ofthe Properties view to open the Subreport Parameters dialog. 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