Jump to content
JasperReports Library 7.0 is now available ×

don't see sub report contents displayed


Recommended Posts

By: Honghai Zhang - haroldzhang

don't see sub report contents displayed

2003-12-05 11:36

Hi,

 

I want a sub report printed in the group footer. Here is the xml

 

<groupFooter>

<band height="600">

<subreport isUsingCache="true">

<reportElement x="0" y="0" width="585" height="500" positionType="Float"/>

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

"EmailSetup.jasper"

</subreportExpression>

</subreport>

</band>

</groupFooter>

 

And here is the subreport EmailSetup.xml:

 

<jasperReport

name="EmailSetup"

pageWidth="585"

pageHeight="842"

leftMargin="0"

rightMargin="0"

topMargin="0"

bottomMargin="0">

 

<detail>

<band height="500">

<staticText>

<reportElement x="0" y="0" width="140" height="10"/>

<textElement>

<font fontName="serif" size="10" pdfFontName="Times-Roman"/>

</textElement>

<text>MSA #</text>

</staticText>

<line>

<reportElement x="140" y="10" width="200" height="0"/>

<graphicElement stretchType="NoStretch"/>

</line>

<staticText>

<reportElement x="340" y="0" width="100" height="10"/>

<textElement textAlignment="Right">

<font fontName="serif" size="10" pdfFontName="Times-Roman"/>

</textElement>

<text>Quote ID #</text>

</staticText>

<line>

<reportElement x="440" y="10" width="145" height="0"/>

<graphicElement stretchType="NoStretch"/>

</line>

</band>

</detail>

 

</jasperReport>

 

But I don't see anything from sub report EmailSetup gets displayed in the main report.

 

Can you see what is wrong with what I am doing?

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