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

text field generating new page


jeyvison_1

Recommended Posts

Hello folks. I Have the following XML:
 
<jasperReport bottomMargin='0' rightMargin='0' pageWidth='768'name='EditorReport' columnWidth='768'xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xmlns='http://jasperreports.sourceforge.net/jasperreports'leftMargin='0'xsi:schemaLocation='http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd'topMargin='0' pageHeight='1087'><import value='org.apache.commons.codec.binary.Base64'></import><parameter name='C_788346' class='java.lang.String'></parameter><pageHeader><band height='45'></band></pageHeader><detail><band height='960' ><textField isStretchWithOverflow='true'><reportElement key='staticText' x='20' y='15' width='730'height='145' forecolor='0'></reportElement><textElement markup='styled'><font fontName='Verdana' size='10' isBold='false' isItalic='false'isUnderline='false' isStrikeThrough='false'></font></textElement><textFieldExpression><![CDATA[$P{C_788346}]]></textFieldExpression></textField></band><band height='5'></band></detail><pageFooter><band height='45'></band></pageFooter></jasperReport>[/code]
 
 
I have a text filed generating a new page even when it's content does not fill the entire page. Debuggin the jasper lib, i found a piece of code that aloows the creation of the new page:
 
if (maxBandStretch > availableHeight - getContainerHeight() + firstY)  {   tmpWillOverflow = true;  }[/code]
 
I dont know how to fix it since the content of the text filed is not filling the entire first page. Can anobody help?
 
I'm using jasperreport 4.1.2
 
thanks in advance

 

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Popular Days

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