Jump to content

Recommended Posts

Posted

hi people i have a table with 4 columns but i want have border in the 2nd column (only that)
Example:
      data  !  data2 ! data3  data4
         1     !----------!    a         aa
         2     !----------!    b         bb
         3     !----------!    c         cc

Any idea?  ( the idea  is have border for only the 2nd column ,   i need  this border to writte with a pencil. Thanks!

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

  • Solution
Posted

If you are using a Table component in a report, this can be achieved by removing borders for the table completely (for example create a new style, set width for all borders to 0 and apply the style to this table), and then add borders to the Text filed used in the 2nd column.

If you are not using Table and just put Text elements in the Detail band this is even simpler: just configure borders for Text elements in each column.

If the above doesn't help with your scenario, it would be helpful to look at your JRXML file to understand the issue.

 

- Stas

Posted

I think you question is really not just about writing borders but about printing when a value is null.

You can try to print a space when a value is null using ternary statement in your expression.

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