foobrother Posted July 27, 2009 Share Posted July 27, 2009 Hi everybody, I'm trying to send 2 parameters (which are also parameters from the main report) to a subreport.In the main report, I have added the I want to send in the "Parameters" section of the subreport.In the subreport I have created 2 parameters with the same name as the ones used in the main report.I'm trying to print these parameters in the subreport but I don't get anything. I don't have any error but the parameters are not printed. Any idea?Code: <subreport> <reportElement x="100" y="109" width="200" height="73"/> <subreportParameter name="dateTo"> <subreportParameterExpression><![CDATA[$P{dateTo}]]></subreportParameterExpression> </subreportParameter> <subreportParameter name="dateFrom"> <subreportParameterExpression><![CDATA[$P{dateFrom}]]></subreportParameterExpression> </subreportParameter> <connectionExpression><![CDATA[$P{REPORT_CONNECTION}]]></connectionExpression> <subreportExpression class="java.lang.String"><![CDATA[$P{SUBREPORT_DIR} + "kpi_administration_avg_overdue_client.jasper"]]></subreportExpression> </subreport>Post Edited by foobrother at 07/27/2009 13:53 Link to comment Share on other sites More sharing options...
Solution foobrother Posted July 27, 2009 Author Solution Share Posted July 27, 2009 Solved! Another stupid error: I forgot to compile the subreport (too used to Eclipse). 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