Jump to content
Changes to the Jaspersoft community edition download ×

Page height dynamically ?


Recommended Posts

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

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic



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.


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