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

Parameterizing orientation!


jo_atman

Recommended Posts

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Hi,

 

No, you cannot. This is because the report templates use absolute positioning and changing the page orientation does not automatically move the content around and make it adapt you your new page dimensions.

The whole report layout gets compromised and you need a visual designer to re-arrange its content.

Changing page orientation means changing page size.

 

This seems to have more with dynamic report templates than static report templates and I guess you'll end up using the API directly to dynamically create your report templates or at least change them on the fly. Such layout changes as well as expression changes imply report template revalidation, so the JasperDesign objects involved have to be compiled again into JasperReport objects on-the-fly.

 

Check the supplied /demo/samples/noxmldesign for details about how to use the API to create or modify report templates dynamically.

 

I hope this helps.

Teodor

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