How can i get rid of the spaces between my boxes?

0

 

I tried aligning the 3 boxes together, but its not working. Its like they have some kind of margin, but i dont see it in the code.

Here's the xml:

<elementGroup>
                <textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true">
                    <reportElement key="textField-1" stretchType="RelativeToTallestObject" mode="Transparent" x="11" y="0" width="216" height="0" isRemoveLineWhenBlank="true" forecolor="#000000" backcolor="#FFFFFF" uuid="e7b48ed5-a2aa-493d-b27d-cdda1145bc87">
                        <printWhenExpression><![CDATA[$F{RESULTMICRO1}!=null]]></printWhenExpression>
                    </reportElement>
                    <box leftPadding="1">
                        <pen lineWidth="0.0"/>
                        <topPen lineWidth="0.5" lineStyle="Dashed"/>
                        <leftPen lineWidth="0.5" lineStyle="Dashed"/>
                        <bottomPen lineWidth="0.5" lineStyle="Dashed"/>
                        <rightPen lineWidth="0.5" lineStyle="Dashed"/>
                    </box>
                    <textElement textAlignment="Center" verticalAlignment="Top" rotation="None">
                        <font fontName="Courier New" size="9" isBold="false" isItalic="true" isUnderline="false" isStrikeThrough="false" pdfFontName="Courier-Bold" pdfEncoding="Cp1252" isPdfEmbedded="true"/>
                        <paragraph lineSpacing="Single"/>
                    </textElement>
                    <textFieldExpression><![CDATA[$F{RESULTMICRO1}]]></textFieldExpression>
                </textField>
                <textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true">
                    <reportElement key="textField-1" stretchType="RelativeToTallestObject" mode="Transparent" x="233" y="0" width="144" height="0" isRemoveLineWhenBlank="true" forecolor="#000000" backcolor="#FFFFFF" uuid="e727c535-294f-4ca6-8589-f489a761286e">
                        <printWhenExpression><![CDATA[$F{RESULTMICRO2}!=null]]></printWhenExpression>
                    </reportElement>
                    <box leftPadding="1">
                        <pen lineWidth="0.5" lineStyle="Dashed"/>
                        <topPen lineWidth="0.5" lineStyle="Dashed"/>
                        <leftPen lineWidth="0.5" lineStyle="Dashed"/>
                        <bottomPen lineWidth="0.5" lineStyle="Dashed"/>
                        <rightPen lineWidth="0.5" lineStyle="Dashed"/>
                    </box>
                    <textElement textAlignment="Center" verticalAlignment="Top" rotation="None">
                        <font fontName="Courier New" size="9" isBold="false" isItalic="true" isUnderline="false" isStrikeThrough="false" pdfFontName="Courier-Bold" pdfEncoding="Cp1252" isPdfEmbedded="true"/>
                        <paragraph lineSpacing="Single"/>
                    </textElement>
                    <textFieldExpression><![CDATA[$F{RESULTMICRO2}]]></textFieldExpression>
                </textField>
                <textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true">
                    <reportElement key="textField-1" stretchType="RelativeToTallestObject" mode="Transparent" x="387" y="0" width="195" height="0" isRemoveLineWhenBlank="true" forecolor="#000000" backcolor="#FFFFFF" uuid="61abc646-3ad2-437e-a387-f4b1ea6aaf48">
                        <printWhenExpression><![CDATA[$F{RESULTMICRO3}!=null]]></printWhenExpression>
                    </reportElement>
                    <box leftPadding="1">
                        <pen lineWidth="0.5" lineStyle="Dashed"/>
                        <topPen lineWidth="0.5" lineStyle="Dashed"/>
                        <leftPen lineWidth="0.5" lineStyle="Dashed"/>
                        <bottomPen lineWidth="0.5" lineStyle="Dashed"/>
                        <rightPen lineWidth="0.5" lineStyle="Dashed"/>
                    </box>
                    <textElement textAlignment="Center" verticalAlignment="Top" rotation="None">
                        <font fontName="Courier New" size="9" isBold="false" isItalic="true" isUnderline="false" isStrikeThrough="false" pdfFontName="Courier-Bold" pdfEncoding="Cp1252" isPdfEmbedded="true"/>
                        <paragraph lineSpacing="Single"/>
                    </textElement>
                    <textFieldExpression><![CDATA[$F{RESULTMICRO3}]]></textFieldExpression>
                </textField>
            </elementGroup>

<elementGroup>
<textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true">
<reportElement key="textField-1" stretchType="RelativeToTallestObject" mode="Transparent" x="11" y="0" width="216" height="0" isRemoveLineWhenBlank="true" forecolor="#000000" backcolor="#FFFFFF" uuid="e7b48ed5-a2aa-493d-b27d-cdda1145bc87">
<printWhenExpression><![CDATA[$F{RESULTMICRO1}!=null]]></printWhenExpression>
</reportElement>
<box leftPadding="1">
<pen lineWidth="0.0"/>
<topPen lineWidth="0.5" lineStyle="Dashed"/>
<leftPen lineWidth="0.5" lineStyle="Dashed"/>
<bottomPen lineWidth="0.5" lineStyle="Dashed"/>
<rightPen lineWidth="0.5" lineStyle="Dashed"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Top" rotation="None">
<font fontName="Courier New" size="9" isBold="false" isItalic="true" isUnderline="false" isStrikeThrough="false" pdfFontName="Courier-Bold" pdfEncoding="Cp1252" isPdfEmbedded="true"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$F{RESULTMICRO1}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true">
<reportElement key="textField-1" stretchType="RelativeToTallestObject" mode="Transparent" x="233" y="0" width="144" height="0" isRemoveLineWhenBlank="true" forecolor="#000000" backcolor="#FFFFFF" uuid="e727c535-294f-4ca6-8589-f489a761286e">
<printWhenExpression><![CDATA[$F{RESULTMICRO2}!=null]]></printWhenExpression>
</reportElement>
<box leftPadding="1">
<pen lineWidth="0.5" lineStyle="Dashed"/>
<topPen lineWidth="0.5" lineStyle="Dashed"/>
<leftPen lineWidth="0.5" lineStyle="Dashed"/>
<bottomPen lineWidth="0.5" lineStyle="Dashed"/>
<rightPen lineWidth="0.5" lineStyle="Dashed"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Top" rotation="None">
<font fontName="Courier New" size="9" isBold="false" isItalic="true" isUnderline="false" isStrikeThrough="false" pdfFontName="Courier-Bold" pdfEncoding="Cp1252" isPdfEmbedded="true"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$F{RESULTMICRO2}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true">
<reportElement key="textField-1" stretchType="RelativeToTallestObject" mode="Transparent" x="387" y="0" width="195" height="0" isRemoveLineWhenBlank="true" forecolor="#000000" backcolor="#FFFFFF" uuid="61abc646-3ad2-437e-a387-f4b1ea6aaf48">
<printWhenExpression><![CDATA[$F{RESULTMICRO3}!=null]]></printWhenExpression>
</reportElement>
<box leftPadding="1">
<pen lineWidth="0.5" lineStyle="Dashed"/>
<topPen lineWidth="0.5" lineStyle="Dashed"/>
<leftPen lineWidth="0.5" lineStyle="Dashed"/>
<bottomPen lineWidth="0.5" lineStyle="Dashed"/>
<rightPen lineWidth="0.5" lineStyle="Dashed"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Top" rotation="None">
<font fontName="Courier New" size="9" isBold="false" isItalic="true" isUnderline="false" isStrikeThrough="false" pdfFontName="Courier-Bold" pdfEncoding="Cp1252" isPdfEmbedded="true"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$F{RESULTMICRO3}]]></textFieldExpression>
</textField>
</elementGroup>

Attachments: 
leandro.marquez's picture
Joined: Aug 30 2021 - 7:21am
Last seen: 3 weeks 4 days ago

1 Answer:

0

Select text fields -->right click-->Horizontal Spacing-->Remove Horizontal Space

bigalex's picture
107
Joined: Apr 12 2019 - 9:15am
Last seen: 3 days 12 hours ago
Feedback
randomness