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

0

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: 1 month 1 week ago

2 Answers:

2

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
1743
Joined: Nov 15 2012 - 10:47am
Last seen: 2 months 5 days ago
0

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: 2 months 1 week ago
Feedback