modell Posted November 22, 2023 Share Posted November 22, 2023 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 More sharing options...
Mehak Rajkumar Posted November 27, 2023 Share Posted November 27, 2023 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 More sharing options...
Jivan Phadtare Posted November 28, 2023 Share Posted November 28, 2023 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 More sharing options...
modell Posted November 28, 2023 Author Share Posted November 28, 2023 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 More sharing options...
modell Posted November 28, 2023 Author Share Posted November 28, 2023 Apparently I can't edit a comment to add details, so my apologies for two posts. @jphadtar @Mehak Rajkumar Unfortunately, the workaround doesn't solve my issue because the XML already contains the correct attribute: <textElement textAlignment="Right"> Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now