Jump to content

Compiled reports are not keeping text alignment


connesbl
Go to solution Solved by connesbl,

Recommended Posts

Hi all,

I am new at using Jaspersoft, but the problem I'm running into is driving me bonkers. I can't figure it out.

I've designed a report using Jaspersoft Studios version 6.2.2.final. I have a few elements in the header that I would like centered, including an image & a few text fields. There's also some static text elements in a group header that should be centered. In the design viewer, it all looks great. In the source, it looks great. Even in the preview, it looks perfect. However, when I actually compile the report and then run it using test data, everything becomes left-aligned!

Here's an example from the jrxml:

            <textField isStretchWithOverflow="true">                <reportElement x="201" y="57" width="199" height="20" uuid="c45500c4-e80f-4c06-aafb-bc99e6454e15"/>                <box bottomPadding="4"/>                <textElement textAlignment="Center">                    <font size="11" isBold="true"/>                </textElement>                <textFieldExpression><![CDATA[$P{storeName}]]></textFieldExpression>            </textField>[/code]

The other fields look similarly to the above tags. Has anyone else ran into this issue?

Please let me know if there's anything else I can provide to nail down this issue. Thanks for your time.

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

  • Solution

After a day and a half of struggling with this issue, I still haven't found an exact solution.

 

I was, however, able to get all of my text aligned properly by rolling back to version 5.6.2. Hopefully this helps someone else out in the future, and they won't have as frustrating an introduction to Jaspersoft Studios as I did.

 

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