Truncated text exporting to Text Report


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 using JasperReports Library version 6.0.4  -->
<!-- 2017-10-24T10:39:50 -->
<jasperReport xmlns="" xmlns:xsi="" xsi:schemaLocation="" 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="" value="prueba_exp_txt"/>
	<queryString language="XPath">
	<field name="variable-text" class="java.lang.String">
		<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="" value="px"/>

And the XML:

<?xml version="1.0" encoding="ISO-8859-1" ?>
	<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>

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

I use TIBCO Jaspersoft® Studio (version 6.0.4).

Thank you,


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

0 Answers:

No answers yet