Jump to content
Changes to the Jaspersoft community edition download ×

Textfield Stretch works in HTML , not PDF


Recommended Posts

By: apenrose - apenrose

Textfield Stretch works in HTML , not PDF

2006-04-13 02:30

Hi,

Firstly, I am using iReport 1.2.0 and jasperreports-1.2.0.jar .

 

The HTML version of the report allows the field below to 'Stretch with overflow' however the PDF version does not..

 

Any help greatly appreciated.

Thanks

Andrew P

 

<textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" bookmarkLevel="2" >

<reportElement

mode="Opaque"

x="93"

y="0"

width="60"

height="16"

forecolor="#000000"

backcolor="#FFFFFF"

key="textField"

stretchType="RelativeToTallestObject"

positionType="FixRelativeToTop"

isPrintRepeatedValues="true"

isRemoveLineWhenBlank="false"

isPrintInFirstWholeBand="false"

isPrintWhenDetailOverflows="false"/>

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

<textElement textAlignment="Center" verticalAlignment="Middle" rotation="None" lineSpacing="Single">

<font fontName="Arial" pdfFontName="Helvetica-Bold" size="12" isBold="true" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="Cp1252" isStrikeThrough="false" />

</textElement>

<textFieldExpression class="java.lang.String"><![CDATA[$F{testType}]]></textFieldExpression>

</textField>

 

 

 

By: Nacor - nacor

RE: Textfield Stretch works in HTML , not PDF

2006-04-13 02:55

Linux ? Windows ? Both ?

How does the PDF looks ? Could you post some examples ?

 

 

By: apenrose - apenrose

RE: Textfield Stretch works in HTML , not PDF

2006-04-13 03:04

Hi Nacor,

Thanks for replying.

 

In this case it is running on Windows.

 

If you paste the link below into a browser you will be shown a report with one test in the detail part of the report. Note the Test Type is JITTER. If you click on the PDF icon you will see that the Test Type of JITTER in the PDF format of the report has JITTE on first line and the R on the second, eventhough I have the textfield set to 'Stretch with overflow'

 

http://rw.mynetwatch.net/reports/generalreportTypes.jsp?deviceID=3238121294&timeperiod=1&timestamp=1144922229296&generate=Generate+Report&testTypes=9&reportType=1

 

I have a feeling this is a bug of some sort.

 

Thanks,

Andrew P

 

 

 

 

 

By: Kevin Conyers - kaptnk207

RE: Textfield Stretch works in HTML , not PDF

2006-06-20 02:23

Hi,

 

I'm having a similar problem with the PDF version of a report clipping a field that is stretched in the HTML and Word. The Excel version has the correct contents but doesn't size the row properly and the PDF version just clips the text to one row.

 

Any news on this?

 

Thanks,

 

Kevin

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