swetha reddy Posted July 12, 2007 Share Posted July 12, 2007 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 More sharing options...
codyjasperForge Posted July 12, 2007 Share Posted July 12, 2007 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 More sharing options...
andreasX Posted December 5, 2013 Share Posted December 5, 2013 more details on this subject can be found here: http://stackoverflow.com/a/20374515/1915920 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