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

Ireport Jasper Reports formatting data


pompeighu

Recommended Posts

Hi, when i retrieve data from database and i put it inmy report like this $F{names} i don't know how to make certain data to have a certain format for example....i retrieve names from a database and i want the names that begin with letter A be underlined or bold...how do i do that?
Link to comment
Share on other sites

  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Use a conditional style for this:

Code:

<style name="NameStyle">
<conditionalStyle>
<conditionExpression>Boolean.valueOf($F{name}.startsWith("A"«»))</conditionExpression>
<style isUnderline="true" isBold="true" pdfFontName="..Bold"/>
</conditionalStyle>
</style>

 

HTH,

Lucian

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