Jump to content
JasperReports Library 7.0 is now available ×

Filling Report never finishes


Recommended Posts

By: varunn - varunnagpal

Filling Report never finishes

2006-04-17 07:08

My jasper design is such that I have a textField in my band where textField y + height = bandheight. The stretchWithOverFlow property of the textField is set to "true".

 

The report design is valid, but during filling, the process hangs and in the end terminates the JVM.

 

My question is, that, is this a known bug in Jasper? If the last element in a band, which has its bottom coinciding with the bottom of the band, is made to stretch, Jasper is not able to do so?

 

 

 

 

By: varunn - varunnagpal

RE: Filling Report never finishes

2006-04-17 07:17

I forgot to add that this bug occurs when textField y + height = bandheight = pageHeight

 

That is, when the filler has restriction on page height as well as band height and is trying to fill the last element, it is unable to calculate the breaks.

 

Could someone elaborate on this behavior?

 

 

 

 

By: Teodor Danciu - teodord

RE: Filling Report never finishes

2006-04-17 07:42

 

Hi,

 

Does your band allow splitting?

Check the isSplitAllowe property of the band.

Do you have elements with isPrintWhenDetailOverflows="true" in this band?

 

Thank you,

Teodor

 

 

 

 

 

By: varunn - varunnagpal

RE: Filling Report never finishes

2006-04-17 07:50

Hi Teodor,

 

Following is the simplest report design that I can get to fail during filling:-

-------------------------------------------------

<jasperReport name="MyReport" pageWidth="555" pageHeight="1050" whenNoDataType="AllSectionsNoDetail" columnWidth="555" leftMargin="0" rightMargin="0" topMargin="0" bottomMargin="0">

<title>

<band height="1050">

<textField isStretchWithOverflow="true">

<reportElement positionType="Float" x="15" y="1037" width="15" height="13"/>

<textElement verticalAlignment="Middle" lineSpacing="Single">

<font fontName="Times New Roman" size="12" isBold="true" pdfEncoding="Cp1252" isPdfEmbedded="false"/>

</textElement>

<textFieldExpression class="java.lang.String"><![CDATA[" "]]></textFieldExpression>

</textField>

</band>

</title>

</jasperReport>

-------------------------------------------------

 

Thanks,

Varun.

 

 

 

 

By: Teodor Danciu - teodord

RE: Filling Report never finishes

2006-04-17 08:09

 

Hi,

 

What version of JasperReports are you using?

 

Thank you,

Teodor

 

 

 

 

 

By: varunn - varunnagpal

RE: Filling Report never finishes

2006-04-17 08:15

I am using JR 1.1.0

 

 

 

 

By: Teodor Danciu - teodord

RE: Filling Report never finishes

2006-04-17 08:40

 

Hi,

 

I think this was solved in JR 1.2.1 when the TextMeasurer was modified a little.

I tried your sample and it worked with JR 1.2.1.

 

Thank you,

Teodor

 

 

 

 

 

By: varunn - varunnagpal

RE: Filling Report never finishes

2006-04-17 09:23

Hi Teodor,

 

Thanks for the resolution. I have another scenario that results in a filling error.

 

It is when I use the above mentioned design as a subreport in my main report. The relevant portion of the main report design is :-

 

-------------------------------------------------

<detail>

<band height="26">

<subreport>

<reportElement mode="Opaque" x="0" y="1" width="555" height="25" isRemoveLineWhenBlank="false" stretchType="RelativeToBandHeight">

</reportElement>

<connectionExpression>

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

</connectionExpression>

<subreportExpression class="net.sf.jasperreports.engine.JasperReport">$P{mysubreport}</subreportExpression>

</subreport>

</band>

</detail>

 

-------------------------------------------------

 

Any idea why the filling fails here even if I provide a subreport which doesn't have any filling errors in itself? (I remove the filling errors in the subreport by making the stretchable property of my textfields as false)

 

Thanks,

Varun

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