J_N Posted November 14, 2006 Share Posted November 14, 2006 Because of problems of setting printer tractor paper dimesions (jasper classes ignore it), I would like to set page height dynamically. But height attribute is protected and I cannot find the right way to derive JasperReport class and set the value. Please help me, thanks. Link to comment Share on other sites More sharing options...
Teodor Danciu Posted November 16, 2006 Share Posted November 16, 2006 Hi, The page height cannot be set on the compiled report template (JasperReport), but rather on a raw JasperDesign object that has to be compiled after.Check the /demo/samples/noxmldesign sample provided to see how you could work with a JasperDesign object and note that you could load it from an existing JRXML file using the JRXmlLoader utility class. I hope this helps.Teodor 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