Jump to content

Subreport display problem


jpkumar2000

Recommended Posts

 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 advance

Main Report file : AClaimingReport.jrxml

Subreport file : AclaimingSbrReport.jrxml

 

Regards

JP

 



Post Edited by jpkumar2000 at 09/23/2009 13:12
Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

 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>

 

Thanks

Pradeep

 

 

 



Post Edited by jpkumar2000 at 10/02/2009 16:02
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...