Jump to content
Changes to the Jaspersoft community edition download ×

text field alignment using scriplet class


Recommended Posts

Hi All,


I have few text fields in details band for which styled text is enabled.

So i can use <style> tag to apply styles for text.


Text field values are retrieved from scriplet class.


Using <style> tag i can apply other styles like font-size,face,isBold ...

But I could not apply alignment using <style> tag dynamically.


Pl help

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic



The alignment properties are not among those supported by styled text. This is because they often apply to the whole text field and not only to portions of a text field.

If you think this is something you need, then please post it as a feature request.


But note that another way to achieve it would be do conditionally display text fields that are place one on top of another, but having different alignment.


I hope this helps.


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