Jump to content
We've recently updated our Privacy Statement, available here ×

Positioning relative to the right side


2005 IR Help

Recommended Posts

By: vinnytheNose - pmauro

Positioning relative to the right side

2004-11-01 15:39

I can't seem to figure out how to position reportElements in a report to the right edge of the page.

 

The reason being, I have an image at the head of a page and it should be right justified. Sometimes the page is letter sized, sometimes landscape. Currently it is absolutely positioned appropriately for the letter sized page, however if the page becomes landscape, then it is no longer aligned with the right side of the page.

 

Can this be done by determining the page width at runtime?

 

Thanks for your help.

 

 

 

 

By: vinnytheNose - pmauro

RE: Positioning relative to the right side

2004-11-02 15:38

Well, I found one way of doing it.

I set a key on the reportElement and then in my code that sets up the report, when it realizes that the report will be landscape, it grabs the reportElement by key and resets its X value accordingly.

 

If anyone has any design-time solutions, I would much prefer that, as this makes design maintenance in two spots, the java code and the xml.

 

Thanks.

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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