Jump to content
We've recently updated our Privacy Statement, available here ×

How to Remove extra line from Text filed in jasper Report


pinakialone

Recommended Posts

 

I've got a problem, which I've been struggling with for long time. Finally I've decided to write about it on the forum, since I don't have a clue what to do about it anymore.Hope you could figure somthing out.

Problem : There is textfield in my .jrxml file.for cover page of my report one is for customer Address and another is for customer Name. with option "Stretch with overflow". stretch type = No stretch positoin type=float

Here I am using pdfFontType Ms Mincho for showing japanese as well as english charecter. But always getting blank line (two when text field character is maximum)in respect of text field character value in both windows and linux environment.So its a cosmetic look and feel issue on my report.

How to remove that line? Please give me suggestion or show me any way out.

thanks in advance

Providing snap shot of my report

 

 

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Hi,

have you tried the isRemoveLineWhenBlank-option?

e.g.

<textField isBlankWhenNull="true">
        <reportElement isRemoveLineWhenBlank="true" ...>
              <printWhenExpression>...</printWhenExpression>
       </reportElement>
       <textFieldExpression><![CDATA[$P{k06}]]></textFieldExpression>
</textField>

 

Link to comment
Share on other sites

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...