vinay63 Posted November 1, 2017 Share Posted November 1, 2017 I am posting my detail Section, which has only 1 field. When an output file is created every line has an extra blank line... The content of field 'tranLine' are shorter than the width. <detail> <band height="20" isSplitAllowed="false"> <textField isBlankWhenNull="true"> <reportElement x="0" y="0" width="1250" height="20" isRemoveLineWhenBlank="true"/> <textElement> <font size="14"/> </textElement> <textFieldExpression class="java.lang.String"><![CDATA[$F{tranLine}]]></textFieldExpression> </textField> </band> </detail>Here is my output... TEST171018TESTTEST000300 TXT DATA USD 1,000,000.00 RXMXRXS - ,20171024:00590 TEXT171020TEXTTEXT002700 TXT DATA USD 20,000.00 RXMXRXS - ,20171024:00470 Link to comment Share on other sites More sharing options...
vinay63 Posted November 2, 2017 Author Share Posted November 2, 2017 I don't think font-size makes any difference, I was just experimenting.. So it can be ignored.The content of tranLine are preformatted with exact spaces as that is the requirement.. 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