Jump to content
Changes to the Jaspersoft community edition download ×

Pen stroke bleeds over into other elements


rsilverns.sympatico.ca

Recommended Posts

I create 4 text fields with underlined text and then create a line object and assign it a stroke of dashed line. My datasource has multiple elements in it. The first element has the 4 text fields with normal solid underlining, and then a dashed line, the second element in the data source now has dashed lines for all of the underlined text. If I move the dashed line up or down in my report elements list, the underlined text AFTER the dashed line inherit the dashed line, even on the first datasource element.

 

Is it a "feature" reflective of how I am creating my elements or something, or is this a known bug that others have experienced?

 

To reproduce this bug.. use iReports (or JasperAssistant) simply create 3 static text elements in the columnHeader and set them to be underlined. Then create a line and make it a dashed line, then another text elment and make it underlined as well. The last text element inherits the underline from the line element.

Link to comment
Share on other sites

  • Replies 5
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

I am using jasperreports version 1.2.5, JRE 1.5.0_06 and created 2 reports in iReports and jasperassistant respectively to produce this issue. The following is my iReports report....

 

<?xml version="1.0" encoding="UTF-8" ?>

<!-- Created with iReport - A designer for JasperReports -->

<!DOCTYPE jasperReport PUBLIC "//JasperReports//DTD Report Design//EN" "http://jasperreports.sourceforge.net/dtds/jasperreport.dtd">

<jasperReport

name="Untitled_report_1"

columnCount="1"

printOrder="Vertical"

orientation="Portrait"

pageWidth="595"

pageHeight="842"

columnWidth="535"

columnSpacing="0"

leftMargin="30"

rightMargin="30"

topMargin="20"

bottomMargin="20"

whenNoDataType="NoPages"

isTitleNewPage="false"

isSummaryNewPage="false">

<property name="ireport.scriptlethandling" value="0" />

<property name="ireport.encoding" value="UTF-8" />

<import value="java.util.*" />

<import value="net.sf.jasperreports.engine.*" />

<import value="net.sf.jasperreports.engine.data.*" />

 

 

<background>

<band height="0" isSplitAllowed="true" >

</band>

</background>

<title>

<band height="50" isSplitAllowed="true" >

</band>

</title>

<pageHeader>

<band height="50" isSplitAllowed="true" >

</band>

</pageHeader>

<columnHeader>

<band height="30" isSplitAllowed="true" >

</band>

</columnHeader>

<detail>

<band height="100" isSplitAllowed="true" >

<staticText>

<reportElement

x="9"

y="3"

width="153"

height="16"

key="staticText-1"/>

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

<textElement>

<font isUnderline="true"/>

</textElement>

<text><![CDATA[First Element]]></text>

</staticText>

<staticText>

<reportElement

x="8"

y="23"

width="153"

height="16"

key="staticText-2"/>

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

<textElement>

<font isUnderline="true"/>

</textElement>

<text><![CDATA[second Element]]></text>

</staticText>

<line direction="TopDown">

<reportElement

x="10"

y="43"

width="203"

height="0"

key="line-1"/>

<graphicElement stretchType="NoStretch" pen="Dotted"/>

</line>

<staticText>

<reportElement

x="7"

y="48"

width="154"

height="33"

key="staticText-3"/>

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

<textElement>

<font isUnderline="true"/>

</textElement>

<text><![CDATA[Fourth Element (After line)]]></text>

</staticText>

</band>

</detail>

<columnFooter>

<band height="30" isSplitAllowed="true" >

</band>

</columnFooter>

<pageFooter>

<band height="50" isSplitAllowed="true" >

</band>

</pageFooter>

<lastPageFooter>

<band height="50" isSplitAllowed="true" >

</band>

</lastPageFooter>

<summary>

<band height="50" isSplitAllowed="true" >

</band>

</summary>

</jasperReport>

Post edited by: rsilver@bfm.bm, at: 2006/09/21 15:47

Link to comment
Share on other sites

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