Jump to content
We've recently updated our Privacy Statement, available here ×

Unwanted space is added when text field is stretched


zauli83

Recommended Posts

Hi, i've to create a report with a long text field ( about 2k chars ). This report element is wrapped within a frame. When this element grows, all elements below it must slide down. But, when a long data is entered, an unwanted space inside the frame, below the text field, is added. This "unwanted space" is as tall as the text element. What can be the cause?

I'm using this jrxml

<?xml version="1.0" encoding="UTF-8"?><!-- Created with Jaspersoft Studio version 6.10.0.final using JasperReports Library version 6.10.0-unknown  --><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="t" pageWidth="595" pageHeight="842" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="d4bd2eec-b584-4af1-b873-00f19983d174"><property name="com.jaspersoft.studio.report.description" value=""/><property name="com.jaspersoft.studio.data.defaultdataadapter" value="One Empty Record"/><subDataset name="Dataset1" uuid="c1f8b001-4f85-4792-b993-e51e4d1f7971"><queryString><![CDATA[]]></queryString></subDataset><scriptlet name="Scriptlet_1" class="net.sf.jasperreports.engine.JRDefaultScriptlet"><scriptletDescription><![CDATA[]]></scriptletDescription></scriptlet><parameter name="guasto" class="java.lang.String"/><queryString><![CDATA[]]></queryString><pageHeader><band height="72"/></pageHeader><detail><band height="680" splitType="Stretch"><frame><reportElement x="3" y="277" width="552" height="299" uuid="19819063-6048-4b00-bc4a-75dadbb9b40b"/><box><topPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/><leftPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/><bottomPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/><rightPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/></box><frame><reportElement x="0" y="118" width="551" height="121" uuid="87eca6e7-5c8f-4f1c-940f-ee4047214a85"><property name="com.jaspersoft.studio.unit.x" value="px"/></reportElement><box><topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/><leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/><bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/><rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/></box><textField isStretchWithOverflow="true" isBlankWhenNull="true"><reportElement x="111" y="1" width="434" height="120" uuid="2c31d5e9-1400-4df0-8f6a-62eef7fd73b0"/><textElement><font size="9"/></textElement><textFieldExpression><![CDATA[$P{guasto}]]></textFieldExpression></textField></frame></frame></band></detail></jasperReport>[/code]

 

I've attached the report pages. The problem lies on the 2nd page. The text filed length is about 2048 chars. Thank you in advance for the help

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Well I tried your design... and  just "colored" a bit: :-)

Is causing this:

When shrinking the outer (red) frame to this:

 

The outer space is of course smaller:

 

So not sure why you "wasted so much space and why you use a frame within a frame at all... but the inner frame  doesn't cause the outer frame to shrink... even when RemoveLinenWhenBlank is set to both frames, there is nothing inside the frame, that could moved upwards so the frame distances till their end will be kept.

hth + regards

C-Box

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