jo_atman Posted September 26, 2006 Share Posted September 26, 2006 I have seen this question being asked unsuccessfully before in this forum, but i'll ask anyways:Any chance i can pass in the orientation for the report as a parameter? Link to comment Share on other sites More sharing options...
Teodor Danciu Posted September 28, 2006 Share Posted September 28, 2006 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 More sharing options...
jo_atman Posted September 28, 2006 Author Share Posted September 28, 2006 Thanks, Teodor! great product, by the way. 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