Re: Jasper Report subreport on deployment machine
Re: Jasper Report subreport on deployment machine
- Subject: Re: Jasper Report subreport on deployment machine
- From: Theodore Petrosky <email@hidden>
- Date: Wed, 09 May 2012 12:29:00 -0700 (PDT)
When the subreport was created, I told it to use:
$P{SUBREPORT_DIR} + "filenamehere.jasper"
I assumed too much and the parameter turned into the path on the development machine. I just had to remove $P{SUBREPORT_DIR} and leave:
"filenamehere.jasper"
as the Subreport Expression.
And it only took me 5 minutes to find the answer. Maybe I can learn this stuff. I seem to recall I had to do the same for the images that I imported.
Ted
--- On Wed, 5/9/12, Kieran Kelleher <email@hidden> wrote:
> From: Kieran Kelleher <email@hidden>
> Subject: Re: Jasper Report subreport on deployment machine
> To: "Theodore Petrosky" <email@hidden>
> Cc: email@hidden
> Date: Wednesday, May 9, 2012, 2:59 PM
> 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