How to set up page height by parameter in Jasper Studio 6.8


Hello friends, I want to know if is it possible to set the page height with a parameter.


Thanks for your help!

heavensinformatica's picture
Joined: Aug 12 2019 - 4:38pm
Last seen: 4 months 2 weeks ago

2 Answers:


There is not a way to parameterize page height, orientation etc in JasperReports.

The way to do this is to have main reports with different page sizes and orientations, which call subreports with the desired content.


swood_1's picture
Joined: Nov 15 2012 - 10:47am
Last seen: 1 year 4 months ago

Hi, in recent versions (6.9?), can't we set a report property using the net.sf.jasperreports.engine.type.OrientationEnum class ?

Or that is what you mean using subreports ? You need to send a parameter with name "net.sf.jasperreports.engine.type.OrientationEnum" and value " OrientationEnum.LANDSCAPE" then the subreport understand it? Same for the page height/width ?

If you need to print dynamically images portrait or landscape, is the way to do it ?

Thanks for your insights

Yann22300's picture
Joined: Apr 29 2015 - 1:10am
Last seen: 3 days 22 hours ago