jasper reports - Text in columnFooter doesn't stretch -


i have problem printing content of textfield. report invoice , in column footer want print variable text depending of invoice data.

i defined textfield in column footer band gets content parameter send via jasperstarter.

problem:
textfield cuts lines if don't fit in textfield if set "stretch overflow". if make textfield bigger, text displayed.

jrxml

<?xml version="1.0" encoding="utf-8"?> <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="standardinvoice002" pagewidth="595" pageheight="842" columnwidth="555" leftmargin="20" rightmargin="20" topmargin="20" bottommargin="20" uuid="53084288-6a86-4b4d-a942-fa8965b8d117">     <querystring language="sql">         <![cdata[$p!{query}]]>     </querystring>     <columnfooter>         <band height="196" splittype="stretch">             <textfield isstretchwithoverflow="true" isblankwhennull="true">                 <reportelement positiontype="float" stretchtype="relativetotallestobject" isprintrepeatedvalues="false" x="30" y="165" width="500" height="21" isremovelinewhenblank="true" uuid="27681503-6210-41cc-b444-5b9c0d720f4b"/>                 <textelement markup="html"/>                 <textfieldexpression><![cdata["this long text (1)<br>this long text (2)<br>this long text (3)<br>this long text (4)"]]></textfieldexpression>             </textfield>         </band>     </columnfooter> </jasperreport> 

enter image description here

textfield contains 4 lines 2 displayed

the columnfooter of fixed size (as pagefooter), hence not stretch, need change design.

probably looking groupfooter shows on each page , stacked @ bottom.

example

<?xml version="1.0" encoding="utf-8"?> <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="standardinvoice002" pagewidth="595" pageheight="842" whennodatatype="allsectionsnodetail" columnwidth="555" leftmargin="20" rightmargin="20" topmargin="20" bottommargin="20" uuid="53084288-6a86-4b4d-a942-fa8965b8d117">     <querystring language="sql">         <![cdata[]]>     </querystring>     <group name="pagegroup" footerposition="stackatbottom">         <groupexpression><![cdata[$v{page_number}]]></groupexpression>         <groupfooter>             <band height="142">                 <textfield isstretchwithoverflow="true" isblankwhennull="true">                     <reportelement positiontype="float" isprintrepeatedvalues="false" x="0" y="121" width="555" height="21" isremovelinewhenblank="true" uuid="27681503-6210-41cc-b444-5b9c0d720f4b"/>                     <textelement markup="html"/>                     <textfieldexpression><![cdata["this long text (1)<br>this long text (2)<br>this long text (3)<br>this long text (4)"]]></textfieldexpression>                 </textfield>             </band>         </groupfooter>     </group> </jasperreport> 

output

output

just adjust groupexpression output on page like


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -