Jump to content
Changes to the Jaspersoft community edition download ×

subreportExpression where does jasper look?


2005 IR Help

Recommended Posts

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

  • 1 year later...
  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

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