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

How to remove blank spaces from list


emanuele.a89

Recommended Posts

I,

I have a list element made up of bullets point.  My goal is to reduce space between bullets point. I tried everything, but with no success.

Here below my jrxml:

 

    <?xml version="1.0" encoding="UTF-8"?>
    <!-- Created with Jaspersoft Studio version 6.3.1.final using JasperReports Library version 6.3.1  -->
    <!-- 2018-01-08T14:17:08 -->
    <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="Indentation" pageWidth="595" pageHeight="842" whenNoDataType="AllSectionsNoDetail" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="f0ac92f3-35e5-417e-aecd-5c47be379bf8">
        <property name="com.jaspersoft.studio.data.defaultdataadapter" value="One Empty Record"/>
        <subDataset name="ListDataset" uuid="a6053d26-ad58-4808-ac51-76e62529d7de">
            <queryString>
                <![CDATA[]]>
            </queryString>
            <field name="_THIS" class="java.lang.String"/>
        </subDataset>
        <parameter name="testText" class="java.lang.String">
            <defaultValueExpression><![CDATA["assicurare il raggiungimento degli obiettivi di struttura di competenza attraverso un’efficace gestione dei Promotori Assicurativi e Team Manager da Lei coordinati;nThis is text on line 2"]]></defaultValueExpression>
        </parameter>
        <queryString>
            <![CDATA[]]>
        </queryString>
        <title>
            <band height="34" splitType="Stretch">
                <componentElement>
                    <reportElement x="0" y="0" width="430" height="20" isRemoveLineWhenBlank="true" uuid="a9d62b3a-cdad-4c44-a3e6-8e7688986380"/>
                    <jr:list xmlns:jr="http://jasperreports.sourceforge.net/jasperreports/components" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports/components http://jasperreports.sourceforge.net/xsd/components.xsd" printOrder="Vertical">
                        <datasetRun subDataset="ListDataset" uuid="a21cd89b-dd5a-4135-90e0-a84ef83bd9dc">
                            <dataSourceExpression><![CDATA[new net.sf.jasperreports.engine.data.JRBeanCollectionDataSource(java.util.Arrays.asList($P{testText}.split("n")))]]></dataSourceExpression>
                        </datasetRun>
                        <jr:listContents height="20" width="430">
                            <ellipse>
                                <reportElement x="13" y="4" width="4" height="4" backcolor="#000000" uuid="c2a202b7-ca0f-4ce4-a2d8-35b314f8e1ee">
                                    <property name="com.jaspersoft.studio.unit.width" value="pixel"/>
                                    <property name="com.jaspersoft.studio.unit.height" value="pixel"/>
                                </reportElement>
                            </ellipse>
                            <textField isStretchWithOverflow="true">
                                <reportElement x="30" y="0" width="400" height="20" isRemoveLineWhenBlank="true" uuid="31b05be1-9d89-4928-aec8-095e15e66711"/>
                                <textElement textAlignment="Left"/>
                                <textFieldExpression><![CDATA[$F{_THIS}]]></textFieldExpression>
                            </textField>
                        </jr:listContents>
                    </jr:list>
                </componentElement>
            </band>
        </title>
    </jasperReport>
 

Does anyone have any idea? Thank you for your hepl!!

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Thanks for answering the question, but it does not work. It seems no possible to manage the list' elements. I noticed that if if increase the width of field name="_THIS" to 430 px the blank space between the first and the second element of the list disappear. I do not know why. But, it is not a solution.

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