Truncated text exporting to Text Report

0

The problem seems to be simple, one text field on a one report with only one detail and nothing more than it. This text field refers to a field named "variable-text". The Datasource is a simple XML where are two tags ROOT> that is the root and variable-text> that contains the text to show on the report.

Before you ask, I anticipate that the option "StretchWithOverflow" from text field is enabled (It use to be a typical). Export the same report on PDF, all text is shown.

Then the report code is:

<?xml version="1.0" encoding="UTF-8"?>
<!-- Created with Jaspersoft Studio version 6.0.4.final using JasperReports Library version 6.0.4  -->
<!-- 2017-10-24T10:39:50 -->
<jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="Blank_A4" pageWidth="595" pageHeight="842" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="040229e6-de4f-47f0-8428-0bd64eb29bc1">
	<property name="com.jaspersoft.studio.data.defaultdataadapter" value="prueba_exp_txt"/>
	<queryString language="XPath">
		<![CDATA[/ROOT]]>
	</queryString>
	<field name="variable-text" class="java.lang.String">
		<fieldDescription><![CDATA[variable-text]]></fieldDescription>
	</field>
	<detail>
		<band height="20" splitType="Stretch">
			<textField isStretchWithOverflow="true" isBlankWhenNull="true">
				<reportElement x="0" y="0" width="555" height="20" uuid="75595db2-90ee-4004-bd8b-35bc2b1c74db">
					<property name="local_mesure_unitwidth" value="pixel"/>
					<property name="com.jaspersoft.studio.unit.width" value="px"/>
				</reportElement>
				<textFieldExpression><![CDATA[$F{variable-text}]]></textFieldExpression>
			</textField>
		</band>
	</detail>
</jasperReport>

And the XML:

<?xml version="1.0" encoding="ISO-8859-1" ?>
<ROOT>
	<variable-text>Texto de longitud variable. Se escribe un texto suficientemente largo para que las pruebas sean almenos cercanas al uso habitual de dicho campo, probocando un salto de página si fuera necessario.</variable-text>
</ROOT>

I only want to show all text, It's all I need.

I use TIBCO Jaspersoft® Studio (version 6.0.4).

Thank you,

Xavier

xriu's picture
2
Joined: Oct 24 2017 - 1:26am
Last seen: 2 years 2 weeks ago

0 Answers:

No answers yet
Feedback
randomness