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 protected]> wrote:
> From: Kieran Kelleher <[email protected]>
> Subject: Re: Jasper Report subreport on deployment machine
> To: "Theodore Petrosky" <[email protected]>
> Cc: [email protected]
> 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 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/archive%40mail-archive.com
This email sent to [email protected]