Jump to content
Changes to the Jaspersoft community edition download ×

Subreports dropped from summary


2005 IR Help

Recommended Posts

By: Albert Bachand - z0id

Subreports dropped from summary

2004-06-01 14:04

I have my report setup as I explained previously: http://sourceforge.net/forum/forum.php?thread_id=1084736&forum_id=113530

 

My problem is that since my <summary> contains several subreports, there is a possibility that it might not fit on one page. So, I looked at the tips & tricks page and found out about the $V{REPORT_COUNT} trick. This seems to work when I use static elements (I used a couple of <staticText>s) in the group's band but not for my subreport.

 

I'm using the following:

 

<group name="Foo">

<groupExpression>

$V{REPORT_COUNT}

</groupExpression>

<groupHeader>

<band>

<reportElement x="0" y="1" width="1" height="1"

positionType="Float"

isPrintWhenDetailOverflows="true"/>

 

<dataSourceExpression>

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

</dataSourceExpression>

 

<subreportExpression

class="dori.jasper.engine.JasperReport">

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

</subreportExpression>

</band>

</groupHeader>

</group>

 

And my subreport doesn't get printed.

 

(Sorry for the formatting...)

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