Jump to content
Changes to the Jaspersoft community edition download ×

Subreport Problem


ktrinad

Recommended Posts

By: Federico - frozados97

Subreport Problem

2003-08-21 11:20

Hello. I have a masterReport.xml and a subReport.xml

I create a parameter name $P{SUBREPORT_FILE_NAME} and put "Use connection expression" $P{REPORT_CONNECTION} in the subreport and then pass the first parameter to the subreport. My problem is the subreport doesn't appear into the master report. I use Subreport Tool option.

This is the error, that iReport shows me.

21/08/2003 15:23:24 dori.jasper.engine.fill.JRBaseFiller fill

 

ADVERTENCIA: The supplied java.sql.Connection object is null.

 

thanks,

Federico.

 

 

 

 

By: Sohan Kasula - skasula

RE: Subreport Problem

2003-08-21 13:18

Below is the structure I have used to call sub reports. make a note of difference in the 'subreport expression' and 'subreport parameter expressi' and 'subreport parameter name'. hope this helps.

<subreportParameter name="PSNAPD">

<subreportParameterExpression><![CDATA[

$P{PSNAPD}

]]></subreportParameterExpression>

</subreportParameter>

<connectionExpression><![CDATA[

$P{REPORT_CONNECTION}

]]></connectionExpression>

<subreportExpression class="java.lang.String"><![CDATA[

"APDSubReport3.jasper"

]]></subreportExpression>

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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