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

How do i get Ireport text box past 347 characters


Stevend_1

Recommended Posts

Hello.

I have  report that has a text box of type java.lang.string.  It displays a group of serial numbers shipped. However the box cuts off some of the information.  The truncate always happens after 347 characters.  

I have tryed all three "Stretch" settings and Stretch with overflow off and on with all three Stretch settings. I have added "+ /n" to the end.  Horizontal size and vertical size has no effect on the limit.

I have used a font size of 10 and 8 with no improvment. the truncate happens i nthe middle of the page between other sections and at the end.

I keep coming back to the text box having a physical size limitation.  is that possible?

Thank you greatly to all.

Link to comment
Share on other sites

  • Replies 5
  • Created
  • Last Reply

Top Posters In This Topic

I have used a text box with 1367 characters and could not find this problem in JasperStudio. Change your editor to Jasper studio... itext is not supported

<?xml version="1.0" encoding="UTF-8"?><!-- Created with Jaspersoft Studio version 6.4.2.final using JasperReports Library version 6.4.1  --><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="characterLimit" pageWidth="595" pageHeight="842" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="7d75621f-6b29-4c3d-a38c-ed8278203a40">    <property name="com.jaspersoft.studio.data.sql.tables" value=""/>    <queryString>        <![CDATA[select 'Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem. Nulla consequat massa quis enim. Donec pede justo, fringilla vel, aliquet nec, vulputate eget, arcu. In enim justo, rhoncus ut, imperdiet a, venenatis vitae, justo. Nullam dictum felis eu pede mollis pretium. Integer tincidunt. Cras dapibus. Vivamus elementum semper nisi. Aenean vulputate eleifend tellus. Aenean leo ligula, porttitor eu, consequat vitae, eleifend ac, enim. Aliquam lorem ante, dapibus in, viverra quis, feugiat a, tellus. Phasellus viverra nulla ut metus varius laoreet. Quisque rutrum. Aenean imperdiet. Etiam ultricies nisi vel augue. Curabitur ullamcorper ultricies nisi. Nam eget dui. Etiam rhoncus. Maecenas tempus, tellus eget condimentum rhoncus, sem quam semper libero, sit amet adipiscing sem neque sed ipsum. Nam quam nunc, blandit vel, luctus pulvinar, hendrerit id, lorem. Maecenas nec odio et ante tincidunt tempus. Donec vitae sapien ut libero venenatis faucibus. Nullam quis ante. Etiam sit amet orci eget eros faucibus tincidunt. Duis leo. Sed fringilla mauris sit amet nibh. Donec sodales sagittis magna. Sed consequat, leo eget bibendum sodales, augue velit cursus nunc,' as text from dual]]>    </queryString>    <field name="TEXT" class="java.lang.String"/>    <background>        <band splitType="Stretch"/>    </background>    <title>        <band height="33" splitType="Stretch"/>    </title>    <detail>        <band height="20" splitType="Stretch">            <textField isStretchWithOverflow="true">                <reportElement stretchType="RelativeToBandHeight" x="0" y="0" width="555" height="20" uuid="bcde966c-a656-404e-888d-5b1557cf532d"/>                <textFieldExpression><![CDATA[$F{TEXT}]]></textFieldExpression>            </textField>        </band>    </detail></jasperReport>[/code]

 

Link to comment
Share on other sites

iReports is a very old project that has already been defaunct for several years already. The current report design tool is Jaspersoft Studio.

https://sourceforge.net/projects/jasperstudio/files/JaspersoftStudio-6.5.1/

iReports have several limitations as well as bugs that have already been resolved in Jaspersoft Studio. If you still wish to continue using iReports, that's up to you because iReports is an open source project and you are entitled to continue using it. If you do, however, you'll have to accept the limitations or fix it yourself.

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