elagina.maria.n Posted April 20, 2017 Share Posted April 20, 2017 Hello!I cannot past two or more subreports into master report: in the result file i can see only one subreport.I user Ireport 5.6.0 and jasperreport 6.2.1.My jrxml:<parameter name="SUBREPORT_DIR" class="java.lang.String" isForPrompting="false"><defaultValueExpression><![CDATA["resources\reports\"]]></defaultValueExpression></parameter><field name="commonClinical" class="java.lang.Object"/><field name="bleedingLocalization" class="java.util.List"/><subreport><reportElement stretchType="RelativeToTallestObject" x="0" y="14" width="200" height="100" uuid="7f37acfd-9cca-49d4-91f8-5d05a4f47836"/><dataSourceExpression><![CDATA[new net.sf.jasperreports.engine.data.JRBeanCollectionDataSource($F{commonClinical})]]></dataSourceExpression><subreportExpression><![CDATA[$P{SUBREPORT_DIR} + "common_clinical_subreport.jasper"]]></subreportExpression></subreport><subreport><reportElement positionType="Float" stretchType="RelativeToBandHeight" x="0" y="199" width="200" height="89" uuid="d243ab46-212b-4dbe-a84b-cd1bdb2e8386"/><dataSourceExpression><![CDATA[new net.sf.jasperreports.engine.data.JRBeanCollectionDataSource($F{bleedingLocalization})]]></dataSourceExpression><subreportExpression><![CDATA[$P{SUBREPORT_DIR} + "master_subreport1.jasper"]]></subreportExpression></subreport> My JavaBean (contains Lists with other JavaBeans): public class Visit1ReportBean implements Serializable{ private List<CommonClinicalReportBean> commonClinical;private List<BleedingLocalizationReportBean> bleedingLocalization; //getters, setters, constructor} So here I can see only commonClinical subreport.Please. help me 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