hyma.m Posted October 5, 2007 Share Posted October 5, 2007 hi all, iam using iReport1.2.5.i have created MasterReport with one subreport.i passed subreport as a parameter in MasterReport. the code as follows..... <subreportParameter name="studentId"> <subreportParameterExpression><![CDATA[$F{StudentId}]]></subreportParameterExpression> </subreportParameter> <connectionExpression><![CDATA[$P{REPORT_CONNECTION}]]></connectionExpression> <subreportExpression class="net.sf.jasperreports.engine.JasperReport"><![CDATA[$P{subReport_path}]]></subreportExpression> </subreport> The parameter contains the complete path of subreport. when iam trying to run the report through java code ,i get the report without expceptions and errors, but the problem is iam not getting subreport data.the subreport is blank.wht's problem in that. please help me.thank you. Link to comment Share on other sites More sharing options...
svenn Posted October 5, 2007 Share Posted October 5, 2007 You say that you are passing the complete path in $P{subReport_path}. In that case the Subreport Expession Class should be "java.lang.String" not "net.sf.jasperreports.engine.JasperReport". Your subreport is blank because the main report can not find it. Link to comment Share on other sites More sharing options...
hyma.m Posted October 6, 2007 Author Share Posted October 6, 2007 when iam using the Subreport Expressin is "java.lang.String" it gives the following Exception..... In ReportGenDAO.java Could not load object from location : D:FullMVCMagnusMVCMagnus(Academics)buildwebReportsMarketingStudentDropoutSubReport.jasper Could not load object from location : D:FullMVCMagnusMVCMagnus(Academics)buildwebReportsMarketingStudentDropoutSubReport.jasper how to solve this.. 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