Jump to content
Changes to the Jaspersoft community edition download ×

How to center a table


jndh90

Recommended Posts

There is functionality to horizontally center in the styles as in:

<style name="table" hAlign="Center" vAlign="Middle">
        <box>
            <pen lineWidth="1.0" lineColor="#000000"/>
        </box>
    </style>
    <style name="table_TH" mode="Opaque" backcolor="#F0F8FF" hAlign="Center" vAlign="Middle">
        <box>
            <pen lineWidth="0.5" lineColor="#000000"/>
        </box>
    </style>
    <style name="table_CH" mode="Opaque" backcolor="#BFE1FF" hAlign="Center" vAlign="Middle">
        <box>
            <pen lineWidth="0.5" lineColor="#000000"/>
        </box>
    </style>
    <style name="table_TD" mode="Opaque" backcolor="#FFFFFF" hAlign="Center" vAlign="Middle">
        <box>
            <pen lineWidth="0.5" lineColor="#000000"/>
        </box>
    </style>

Then when I right click on the table element on the design view there is an option to position and center horizontally but this does not seem to do anything.  How do I horizontally center the table in the report?

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Are you referring to the Left and Top Margins of the Table Property? That would work if the table were static but the other piece of this is that the number of columns in the table can change depending on that the user selects to print on the report.
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...