Jump to content
We've recently updated our Privacy Statement, available here ×
  • Changing Default Zoom Level For The Report HTML Output On JasperReports® Server


    oleksandr.voloschuk
    • Features: Parameters Version: v7.1.0, v6.4.2 Product: Jaspersoft® Studio

    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:

    zoom_1.jpg.ec6b3eeb050c275a12a8ee79d2340810.jpg

    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%

    zoom_2.jpg.e2a1e2343f23d37377dde6326d1c1351.jpg


    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

    zoom_1.jpg.8f66f0d33fe4e686190ac661ca9e47ef.jpg


    User Feedback

    Recommended Comments

    There are no comments to display.



    Guest
    This is now closed for further comments

×
×
  • Create New...