Examples of printToImage()


Examples of net.sf.jasperreports.engine.JasperPrintManager.printToImage()

    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
Copyright © 2018 www.massapi.com. 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.