You have to use $P{SUBREPORT_DIR}, e.g.:

<subreportExpression class="java.lang.String"><![CDATA[$P{SUBREPORT_DIR} + 
"subreport.jasper"]]></subreportExpression>

> Never used subreports, but by chance is the subreport pathname hardcoded into 
> the master report? Is there a way to specify a relative path perhaps?
> 
> That looks like a development box pathname to the subreport.
> 
> On May 9, 2012, at 2:20 PM, Theodore Petrosky wrote:
> 
>> everything was cooking along fine then the jasper subpreport.
>> 
>> It works fine on my development box, however I uploaded and installed it to 
>> my interim deployment box and the subreport throws an error.
>> 
>> Error:        net.sf.jasperreports.engine.JRException: Could not load object 
>> from location : 
>> /Users/asacksadmin/Documents/workspaceAS/ASBriefsD2W/Resources/MeetingChecklist_subreport1.jasper
>> Reason:       Could not load object from location : 
>> /Users/asacksadmin/Documents/workspaceAS/ASBriefsD2W/Resources/MeetingChecklist_subreport1.jasper
>> 
>> is it something silly? I will try shortening the subreport name, but other 
>> than that, any ideas?
>> 
>> Ted
>> 
>> _______________________________________________
>> Do not post admin requests to the list. They will be ignored.
>> Webobjects-dev mailing list      ([email protected])
>> Help/Unsubscribe/Update your Subscription:
>> https://lists.apple.com/mailman/options/webobjects-dev/kelleherk%40gmail.com
>> 
>> This email sent to [email protected]
> 
> 
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list      ([email protected])
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/probert%40macti.ca
> 
> This email sent to [email protected]


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to