Jump to content
We've recently updated our Privacy Statement, available here ×

Subreports in iReports


swetha reddy

Recommended Posts

Hi,

 

I have my subreport and master report in the same folder In the subreport expression i have given

 

<subreportExpression class="java.lang.String"><![CDATA["./AdjustmentClaimCompareReport_subreport1.jasper"]]></subreportExpression>

 

still iam getting as not able to load the file.

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

There are two methods of specifiying the correct directory to the subreport. If you use the wizard to create the subreport it will let you store the relative directory inside of a parameter known as $P{SUBREPORT_DIR}

 

Use it and '+' the segment:(Remove the ./) AdjustmentClaimCompareReport_subreport1.jasper

 

So your expression should look something like this:

Code:
$P{SUBREPORT_DIR} + "AdjustmentClaimCompareReport_subreport1.jasper"

 

The other option is to feed the fully qualified path of your .jasper file to the subreport exrpession:

e.g. C:Documents and Settingsblah blah blah...

Link to comment
Share on other sites

  • 6 years later...

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