nairv.veena Posted December 15, 2017 Share Posted December 15, 2017 i have a certain code for eg: 123456789012 1234567890 5The code must be centered on the page (the center point of the code line must be exactly 3.4375” from the left and right page edges). How do i achieve this using ireport ?This is the section I want to center and have the characters print one character per inch<textField> <reportElement positionType="FixRelativeToBottom" x="121" y="519" width="387" height="15" uuid="43e39343-8d37-4ef0-87b0-5feb87fb503c"/> <textElement textAlignment="Center" verticalAlignment="Middle"> <font fontName="OCR A Extended" size="12" pdfFontName=""/> <paragraph lineSpacing="Single"/> </textElement> <textFieldExpression><![CDATA[com.report.util.MICRCodeGenerator.generateMICRCode($F{member}.getCoreId(),$F{bill}.getInvoiceNumber(),($F{bill}.getTotalCurrentDuesAmount()+($F{bill}.getBeginningBalanceAmount())+($F{bill}.getTotalRetroDuesAmount()+$F{bill}.getBalanceAdjustmentAmount())-($F{bill}.getTotalRemittanceAmount())))]]></textFieldExpression> </textField> Please help 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