Re: Jasper Report subreport on deployment machine
Re: Jasper Report subreport on deployment machine
- Subject: Re: Jasper Report subreport on deployment machine
- From: Pascal Robert <email@hidden>
- Date: Wed, 09 May 2012 15:41:06 -0400
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@hidden)
>> Help/Unsubscribe/Update your Subscription:
>>
>> This email sent to email@hidden
>
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden