mercredi 30 avril 2014

Jasper Reports new line


Vote count:

0




I'm new in Jasper Reports. I use iReport 4.5 in NetBeans. I need create some text and insert into text new variable. All works, but new line doesn't create. Tell me please, how to solve it? Thanks!


<?xml version="1.0" encoding="UTF-8"?> <jasperReport xmlns="http://ift.tt/1bXYvZE" xmlns:xsi="http://ift.tt/ra1lAU" xsi:schemaLocation="http://ift.tt/1bXYvZE http://ift.tt/18OQfHh" name="jasper_report_template" pageWidth="595" pageHeight="842" columnWidth="515" leftMargin="40" rightMargin="40" topMargin="50" bottomMargin="50"> <property name="ireport.zoom" value="1.3310000000000004"/> <property name="ireport.x" value="0"/> <property name="ireport.y" value="0"/> <parameter name="ReportTitle" class="java.lang.String"/> <parameter name="Author" class="java.lang.String"/> <queryString> <![CDATA[]]> </queryString> <field name="country" class="java.lang.String"> <fieldDescription><![CDATA[country]]></fieldDescription> </field> <field name="name" class="java.lang.String"> <fieldDescription><![CDATA[name]]></fieldDescription> </field> <title> <band height="240" splitType="Stretch"> <textField isBlankWhenNull="true" bookmarkLevel="1"> <reportElement x="0" y="0" width="515" height="27"/> <textElement textAlignment="Center"> <font size="10" pdfEncoding="Cp1251"/> </textElement> <textFieldExpression> <![CDATA["Some text "+ $P{ReportTitle} +" my name +"<br/>"+ is "]]> </textFieldExpression> <anchorNameExpression><![CDATA["Title"]]></anchorNameExpression> </textField> </band> </title> <columnHeader> <band height="24" splitType="Stretch"/> </columnHeader> <detail> <band height="21" splitType="Stretch"/> </detail> </jasperReport>



asked 43 secs ago






1 commentaire:

  1. Since it related to jasper report, I think may be you can go to this jasper report specific community,

    community.jaspersoft.com.


    Related Posts: Read barcode in Java Jasper Report

    RépondreSupprimer