Jump to content

Hello i have a requirement to space a text in certain way -centered in a particular measurement and characters should be certain width


nairv.veena

Recommended Posts

 i have a certain code for eg: 123456789012 1234567890 5

The 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

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...