Jump to content

Subreport is blank


hyma.m

Recommended Posts

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

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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

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

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...