r3n4n Posted September 17, 2009 Share Posted September 17, 2009 I'm trying modify the page orientation at runtime, but the following code doesnt work. Any idea ?Code:JasperDesign jasperDesign = JRXmlLoader.load(reportsBaseDir + "my_report.jrxml");jasperDesign.setOrientation(JasperDesign.ORIENTATION_LANDSCAPE);jasperReport = JasperCompileManager.compileReport(jasperDesign); Link to comment Share on other sites More sharing options...
sergeleo Posted September 17, 2009 Share Posted September 17, 2009 r3n4nWrote: I'm trying modify the page orientation at runtime, but the following code doesnt work. Any idea ? Code: It's not going to work. You have to change pageWidth, pageHeight, columnWidth in your jasperReport template. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now