Jump to content
Changes to the Jaspersoft community edition download ×

detail printed twice


Recommended Posts

By: dekurio81 - dekurio81

detail printed twice

2006-05-23 00:03

Hello everybody,

 

since several days i´m trying to find the reason for this error, without success.

at the masterreport(a) i have a subreport(b). this subreport also calls subreports(c + d) . the subreports (c + d) are printed twice and i don´t find the reason for. there is only one call.

 

perhaps the code may help you to understand.

 

<code>

<detail>

<band height="52" isSplitAllowed="false" >

<subreport isUsingCache="false">

<reportElement

mode="Opaque"

x="109"

y="0"

width="476"

height="17"

forecolor="#000000"

backcolor="#FFFFFF"

key="subreport-1"

positionType="Float"

isRemoveLineWhenBlank="true"

isPrintWhenDetailOverflows="true"/>

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

<subreportExpression class="java.lang.String"><![CDATA["VCTextMiningSubGesamtModules.jasper"]]></subreportExpression>

</subreport>

<subreport isUsingCache="false">

<reportElement

mode="Opaque"

x="109"

y="34"

width="476"

height="17"

forecolor="#000000"

backcolor="#FFFFFF"

key="subreport-3"

positionType="Float"

isRemoveLineWhenBlank="true"

isPrintWhenDetailOverflows="true"/>

<subreportParameter name="module">

<subreportParameterExpression><![CDATA["n/e"]]></subreportParameterExpression>

</subreportParameter>

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

<subreportExpression class="java.lang.String"><![CDATA["VCTextMiningSubGesamtNE.jasper"]]></subreportExpression>

</subreport>

<staticText>

<reportElement

x="5"

y="5"

width="67"

height="25"

key="staticText-17"/>

<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>

<textElement>

<font pdfFontName="Helvetica-Bold" size="12" isBold="true"/>

</textElement>

<text><![CDATA[Gesamt]]></text>

</staticText>

</band>

</detail>

</code>

 

it would be very kind, if someone could help me. or could name some possible reasons for this effect.

 

excuse my bad english ;)

 

mfg dek

 

 

 

 

By: jasperkan - jasperkannan

RE: detail printed twice

2006-05-24 09:41

Where do u place the subreports C and D in subreport B ? Are they placed in the detail area of B ? U should be placing C and D in the group footers of B . Else u may face some problem . Create dummy group footers in B and add subreports to the group footers

 

 

 

 

By: dekurio81 - dekurio81

RE: detail printed twice

2006-05-30 05:48

problem seems to be solved.

the sql-query of the mainreport delivered a field with more than one entry. because of this, the subreport was printed more than once.

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