You can use JRXmlLoader.load() to create a JasperDesign object from a template file. Use a method like getPageHeader() to get the range you want, and return the return value to JRDesignBand : the returned object implements JRBand , but for JasperDesign it is always JRDesignBand . There is a setHeight() method in the setHeight() class.
Finally, use JasperCompileManager.compileReport() to create a JasperReport from the (now modified) JasperDesign .
doublep
source share