Jump to content
Changes to the Jaspersoft community edition download ×

Can't right-align text field


modell

Recommended Posts

In Studio, I've set some text fields to right align because they contain Big Decimal data, so I want the decimal places in 1,000.00 to line up with the decimal places in 100.00.  It looks fine in  designer view in Studio (v. 6.20.6), but when published to the server, all decimal values are left aligned like text.  Note that I can't preview in Studio because the parameter type doesn't let me add a value locally.

Obviously, my reports won't match the client specifications until I can figure this out.
I've confirmed that each text field and static text header have Text Alignment = right align.  I tested this by changing one to center align, and that also didn't work when published to the server.

Link to comment
Share on other sites

  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

Thank you for posting to the Jaspersoft Community. Our team of experts has read your question and we are working to get you an answer as quickly as we can. If you have a Jaspersoft Professional Subscription plan, please visit https://support.tibco.com/s/ for direct access to our technical support teams offering guaranteed response times.
 

Link to comment
Share on other sites

Hello,

In studio jrxml file, set the textAlignment attribute in the <textElement/> tag that is associated with the text element to appropriate value (i.e. right) save it and after save try to publish the reprot on server.

For more detalis about allignment, kindly refer to below URL.
https://jasperreports.sourceforge.net/sample.reference/paragraphs/index.html

Hope this finds you helpful !!

Link to comment
Share on other sites

Thanks @jphadtar, but I'm trying to understand why the software UI doesn't perform the function as expected.  Seems like this is a known bug, @Mehak Rajkumar.  Is it on the roadmap to be fixed?

As for the workaround...when I started using Jaspersoft Studio earlier this year, I didn't come across any training resources about editing the XML directly.  Did I overlook them?  What's the best way to learn which tags correspond to the UI elements?

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