title: Change A5 to A4 format on runtime
body: <p>I created a A5 report in ireport and use in java application.<br>
  I change A5 to A4 format on runtime and View Page but when print Page output be A5 format.</p>
  
  <p>following code:</p>
  
  <pre><code>        JasperDesign _des = JRXmlLoader.load("report1.jrxml");
  
          _des.setPageHeight(842);
          _des.setPageWidth(595);
  
          JasperReport _rep = JasperCompileManager.compileReport(_des);
  
          JasperPrint jasperPrint = JasperFillManager.fillReport(_rep, params, _data);
  
          JRViewer_com = new JRViewer(jasperPrint);
  </code></pre>