2005 IR Help Posted August 26, 2006 Share Posted August 26, 2006 By: Vishy - vishyn subreportExpression where does jasper look? 2004-05-05 14:08 Hi, I was successful in using subreport as a Jasper object with fully qualified path and then passing it through parameters map. Now, I have a case where I have to use multiple subreports and using the subreport as a string in subreport expression in the MasterReport.xml. <subreportExpression class="java.lang.String"> <![CDATA["SubCategoriesSubReport.jasper"]]></subreportExpression> My scriptlet class gets called successfully and loads the subcategories but I get an error " Error Message: Could not load object from location : SubCategoriesSubReport.jasper" My jasper files MasterReport.jasper and SubCategoriesSubReport.jasper are in the same directory. How does jasper understand to look for this file when used as a string in subreport expression? Please tell me how to fix this problem. I am stuck as I dont know where jasper is looking for the subreport jasper file. Thanks Vishy By: Chuck Deal - cdeal RE: subreportExpression where does jasper look? 2004-05-06 10:15 I handled this problem by sending a parameter to the report that contained the directory path of the reports. Then I appended the subreport name to that parameter as the subreport expression. By: Vishy - vishyn RE: subreportExpression where does jasper look? 2004-05-07 13:52 Hi Chuck, Thanks for your tip. It worked.. Link to comment Share on other sites More sharing options...
rbojja Posted July 17, 2008 Share Posted July 17, 2008 HiCan you give me your solution.How did u resolve this issue? 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