Hi,
Expected output should be as shown in below image.
Solution: (Read the image properties - outlined red in color)
Related article can be found here :
http://jasper-bi-suite.blogspot.com/2016/03/tip-detail-overflow-vs-streach-with.html
JRXML(Supports in 6.4.2 professional version)
<?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="Frames" pageWidth="595" pageHeight="842" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="5ac4213c-a87a-46d0-bfd2-bfff11545590">
<property name="com.jaspersoft.studio.data.defaultdataadapter" value="One Empty Record"/>
<property name="ireport.callouts" value="callouts.1.fg=0,0,0\ncallouts.1.text=sadakar 7/17/18 1\:20 AM\r\n\r\nAppearance section\r\n------------------------------\r\nPosition Type \= Float\r\nStretch Type \= Relative to Tallest Object\r\n\r\nText field section\r\n--------------------------\r\nCheck Streatch with Overflow\r\n\r\nOther references\r\nhttps\://community.jaspersoft.com/blog/tip-detail-overflow-vs-stretch-overflow-jasper-reports-when-use-how-avoid-repetaitonimages-or\ncallouts.1.bounds=50,60,360,250\ncallouts.1.bg=255,255,0\n"/>
<queryString>
<![CDATA[]]>
</queryString>
<background>
<band splitType="Stretch"/>
</background>
<summary>
<band height="30" splitType="Stretch">
<textField isStretchWithOverflow="true">
<reportElement positionType="Float" stretchType="RelativeToTallestObject" x="0" y="0" width="100" height="30" uuid="eb1d8f3e-313a-469f-a4a9-6585d7c3388a"/>
<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>
<textFieldExpression><![CDATA["Hi"]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true">
<reportElement positionType="Float" stretchType="RelativeToTallestObject" x="100" y="0" width="100" height="30" uuid="8bc5b479-d3d7-4f30-b77a-8d69f2da10e0"/>
<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>
<textFieldExpression><![CDATA["Yakuza Solo hopes his bamboo bicycle will make the world aware of his home state of Nagaland."]]></textFieldExpression>
</textField>
</band>
</summary>
</jasperReport>
No comments:
Post a Comment