leandro.marquez Posted September 22, 2021 Share Posted September 22, 2021 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>[/code]<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> Link to comment Share on other sites More sharing options...
bigalex Posted September 23, 2021 Share Posted September 23, 2021 Select text fields -->right click-->Horizontal Spacing-->Remove Horizontal Space Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now