By default all reports use Template "Actual Size". This information could be checked by property "defaultTemplateUri" in file:
/WEB-INF/applicationContext-adhoc.xml
More information about this property could be found in Admin Guide - section Ad Hoc Templates and Report Generators
For changing default zoom level (100%), for instance to 200%, it is necessary to add property "net.sf.jasperreports.viewer.zoom" with value 2 to "Actual Size" template in Jaspersoft® Studio:
Save this template and publish it to JasperReports® Server.
As result, all reports which will be created on JasperReports® Server with applied this template, will have zoom output level = 200%
For existing .jrxml reports the same result could be achieved by adding this property to the report level:
<property name="net.sf.jasperreports.viewer.zoom" value="2" />
There are other possible values for this property:
- integers (e.g. 3 for 300%)
- decimals (e.g. 0.75 for 75%)
- FitWidth
- ActualSize
- FitHeight
- FitPage
VO-20180518
Recommended Comments
There are no comments to display.