disha.patel Posted December 28, 2018 Share Posted December 28, 2018 I want to make the format of the column display.Column is like : card cash free I want to display like: card cash freeBelow is the code: <band height="15"> <textField pattern="" isBlankWhenNull="false"> <reportElement key="textField-20" mode="Opaque" x="110" y="0" width="225" height="15" forecolor="#000000" backcolor="#FFFFFF" uuid="5efa72ed-9373-4517-ac98-3b0b731b3069"/> <box> <topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/> <leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/> <bottomPen lineWidth="0.0" lineColor="#000000"/> <rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#FFFFFF"/> </box> <textElement textAlignment="Left" verticalAlignment="Top" rotation="None"> <font fontName="SansSerif" size="10" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfFontName="Helvetica" pdfEncoding="Cp1252" isPdfEmbedded="false"/> <paragraph lineSpacing="Single"/> </textElement> <textFieldExpression><![CDATA[str("transpayment." + (String)field_PAYMENT.getValue())]]></textFieldExpression> </textField> <textField pattern="" isBlankWhenNull="false"> <reportElement key="textField-3" mode="Opaque" x="435" y="0" width="100" height="15" forecolor="#000000" backcolor="#FFFFFF" uuid="0e01585f-785f-4dd4-b1cb-33d78d86580f"/> <box> <topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/> <leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/> <bottomPen lineWidth="0.0" lineColor="#000000"/> <rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#FFFFFF"/> </box> <textElement textAlignment="Right" verticalAlignment="Top" rotation="None"> <font fontName="SansSerif" size="10" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfFontName="Helvetica" pdfEncoding="Cp1252" isPdfEmbedded="false"/> <paragraph lineSpacing="Single"/> </textElement> <textFieldExpression><![CDATA[com.openbravo.format.Formats.CURRENCY.formatValue($F{TOTAL})]]></textFieldExpression> </textField> </band> Link to comment Share on other sites More sharing options...
Solution hozawa Posted January 2, 2019 Solution Share Posted January 2, 2019 Have you tried changing the "Layout" to be "Horizontal"?https://community.jaspersoft.com/wiki/jaspersoft-studio-layouts Link to comment Share on other sites More sharing options...
disha.patel Posted January 2, 2019 Author Share Posted January 2, 2019 Thank you for the reply Hozawa. I tried changing the layout to horizontal. It is working. 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