jpkumar2000 Posted September 23, 2009 Share Posted September 23, 2009 Hi,I am developing some demo program using subreports. I have one main report and one subreport. The content of the subreport is not getting displayed in the main report. I have attached both JRXML and XML data file. Could some one help me to resolve the issue ? Thanks in advanceMain Report file : AClaimingReport.jrxmlSubreport file : AclaimingSbrReport.jrxml RegardsJP Post Edited by jpkumar2000 at 09/23/2009 13:12 Link to comment Share on other sites More sharing options...
Teodor Danciu Posted September 29, 2009 Share Posted September 29, 2009 Hi, How do you fill the master report? Do you provide a value for the XML_DATA_DOCUMENT parameter (as you should), or do you provide a JRDataSource instance? Thank you,Teodor Link to comment Share on other sites More sharing options...
jpkumar2000 Posted October 2, 2009 Author Share Posted October 2, 2009 Hi Teodor, Thanks for your support. I have resolved the problem by passing the XPath expression thru new JRXMl sub data source. I have added the below code in the JRXML file. I am facing performance issue. My XML claim file has nearly 5000 claims. I am getting "java.lang.outofmemoryerror" while loading the XML file. Do you have any solution for this problem? <subreport isUsingCache="false"> <reportElement positionType="Float" x="14" y="0" width="683" height="89"/> <dataSourceExpression><![CDATA[((net.sf.jasperreports.engine.data.JRXmlDataSource)$P{REPORT_DATA_SOURCE}).subDataSource("//pat")]]></dataSourceExpression> <subreportExpression class="java.lang.String"><![CDATA[$P{SUBREPORT_DIR} + "AclaimingPatientReport.jasper"]]></subreportExpression> </subreport> ThanksPradeep Post Edited by jpkumar2000 at 10/02/2009 16:02 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