Package net.sf.jasperreports.engine

Examples of net.sf.jasperreports.engine.JasperPrintManager


    return combined;
  }

  private List<BufferedImage> renderImages(List<JasperPrint> print) {
    List<BufferedImage> images = new ArrayList<BufferedImage>();
    JasperPrintManager printManager = JasperPrintManager.getInstance(DefaultJasperReportsContext.getInstance())
    for (JasperPrint jasperPrint : print) {
      for(int page = 0; page < jasperPrint.getPages().size(); page++) {
        try {
          BufferedImage renderedImage = (BufferedImage)printManager.printToImage(jasperPrint, page, zoom);
          images.add(renderedImage);
        } catch (JRException e) {
          throw new RuntimeException(e);
        }
      }
View Full Code Here

TOP

Related Classes of net.sf.jasperreports.engine.JasperPrintManager

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.