Jump to content

problem with sub report


sray

Recommended Posts

I am using two sub reports in my report..

 

First

<subreport isUsingCache="true">

.

.

.

.

<connectionExpression>

<![CDATA[$P{REPORT_CONNECTION}]]>

</connectionExpression>

 

<subreportExpression class="java.lang.String">

<![CDATA[$P{SUBREPORT_DIR} + "form76ccReport_subreport0.jasper"]]>

</subreportExpression>

 

</subreport>

 

Second

<subreport isUsingCache="true">

.

.

.

.

<connectionExpression>

<![CDATA[$P{REPORT_CONNECTION}]]>

</connectionExpression>

 

<subreportExpression class="java.lang.String">

<![CDATA[$P{SUBREPORT_DIR} + "form76ccReport_subreport2.jasper"]]></subreportExpression>

 

</subreport>

 

 

the first subreport is working fine but in case of second one it is give me the folloing error

 

ErrorÂfillingÂprint...ÂCouldÂnotÂloadÂobjectÂfromÂlocationÂ:Â.form76ccReport_subreport2.jasper

net.sf.jasperreports.engine.JRException:ÂCouldÂnotÂloadÂobjectÂfromÂlocationÂ:Â.form76ccReport_subreport2.jasperÂ

 

 

(I am using iReport 1.3.2)

 

Please tell me what is going wrong...

Post edited by: sray, at: 2007/05/04 09:49

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Error filling print... Could not load object from location : .form76ccReport_subreport2.jasper

net.sf.jasperreports.engine.JRException: Could not load object from location : .form76ccReport_subreport2.jasper

 

I would try these thing :

- Verify if you set and pass the SUBREPORT_DIR parameter value (From the error, it seems that the default value is "." which in turn means you have to put the .jasper in the current directory... )

- Search in your filesystem if the "form76ccReport_subreport2.jasper" file exist and where it is. If not, compile the JasperDesign and put the .jasper in some directory and pass the path in the parameter SUBREPORT_DIR

Link to comment
Share on other sites

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