atulajoshi24 Posted February 24, 2020 Share Posted February 24, 2020 I have a subReport which needs to be fixed in between two fieldsThis is like below layout -Static Field 1 : {dynamic expression to get value }Static Field 2 : {dynamic expression to get value }subReportStatic Field 3 : {dynamic expression to get value }The subReport has repeating fields.The code for the section is given below<textField isBlankWhenNull="true">//details are omitted</textField><textField isBlankWhenNull="true">//details are omitted</textField> <subreport overflowType="NoStretch"> <reportElement positionType="FixRelativeToBottom" mode="Transparent" x="10" y="22" width="198" height="18" uuid="xyz"/> <subreportParameter name="SUBREPORT_DIR"> <subreportParameterExpression><![CDATA[$P{SUBREPORT_DIR}]]></subreportParameterExpression> </subreportParameter> <dataSourceExpression><![CDATA[((net.sf.jasperreports.engine.data.JRXmlDataSource)$P{REPORT_DATA_SOURCE}).subDataSource("//Record/Summary")]]></dataSourceExpression> <subreportExpression><![CDATA[$P{SUBREPORT_DIR} + "Details.jasper"]]></subreportExpression></subreport><textField isBlankWhenNull="true">//details are omitted</textField>The issue I am facing is :1)This report structure is not working.2)I have a JAVA code which invokes the report but it is giving Null Pointer Exception3)Sometimes , the JAVA programmes gets hanged for indefinite time with no output4)Can anybody please help here ? What needs to be changed above to get this subReport working ? 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