Examples of JRBasePrintImage


Examples of net.sf.jasperreports.engine.base.JRBasePrintImage

       
        try {
            Map <String, Registration> registrationMap = (Map<String, Registration>) system.query(new GetRegistration());
          
            JRPrintImage image = new JRBasePrintImage(jasperPrint.getDefaultStyleProvider());
            image.setX(0);
            image.setY(0);
            image.setWidth(convert(210));
            image.setHeight(convert(297));
            image.setScaleImage(JRImage.SCALE_IMAGE_FILL_FRAME);
            image.setRenderer(
                    JRImageRenderer.getInstance(
                            JRImageLoader.loadImageDataFromLocation(System.getProperty("user.dir")+"\\img\\welcomeLetterBackground.jpg")
//                          JRImageLoader.loadImageDataFromLocation(System.getProperty("user.dir")+"\\img\\bv.jpg")
                    )
            );
View Full Code Here

Examples of net.sf.jasperreports.engine.base.JRBasePrintImage

            parcelDataListFinalization.add(parcelData);
        }
    }
    private JRPrintElement printImage(String imageName, int posX, int posY, int width, int height) {
        try {
            image = new JRBasePrintImage(jasperPrint.getDefaultStyleProvider());
            image.setX(posX);
            image.setY(posY);
            image.setWidth(width);
            image.setHeight(height);
            image.setScaleImage(JRImage.SCALE_IMAGE_FILL_FRAME);
View Full Code Here

Examples of net.sf.jasperreports.engine.base.JRBasePrintImage

        text.setStyle(style);
        return text;
    }

    private JRPrintElement printImage(String imageName, int posX, int posY, int width, int height) {
        JRBasePrintImage  image = new JRBasePrintImage(jasperPrint.getDefaultStyleProvider());
        image.setX(posX);
        image.setY(posY);
        image.setWidth(width);
        image.setHeight(height);
        image.setScaleImage(JRImage.SCALE_IMAGE_FILL_FRAME);
        try {
           File photoPath = new File(Constants.PHOTO_DIR + imageName);
             if (photoPath.exists()) {
               image.setRenderer(
                   JRImageRenderer.getInstance(
                       JRImageLoader.loadImageDataFromLocation(Constants.PHOTO_DIR + imageName)
                   )
               );
             }
View Full Code Here

Examples of net.sf.jasperreports.engine.base.JRBasePrintImage

        posY += 24;
        page.addElement(drawHorizontalLine(posX, posY, 534));
    }
    private JRPrintElement createBarcode(String code, int posX, int posY, int width, int height) {
        try {
            image = new JRBasePrintImage(jasperPrint.getDefaultStyleProvider());
            image.setX(posX);
            image.setY(posY);
            image.setWidth(width);
            image.setHeight(height);
            image.setScaleImage(JRImage.SCALE_IMAGE_FILL_FRAME);
View Full Code Here

Examples of net.sf.jasperreports.engine.base.JRBasePrintImage

        return text;
    }

    private JRPrintElement printImage(String imageName, int posX, int posY, int width, int height) {
        try {
            image = new JRBasePrintImage(jasperPrint.getDefaultStyleProvider());
            image.setX(posX);
            image.setY(posY);
            image.setWidth(width);
            image.setHeight(height);
            image.setScaleImage(JRImage.SCALE_IMAGE_FILL_FRAME);
View Full Code Here

Examples of net.sf.jasperreports.engine.base.JRBasePrintImage

        return line;
    }
       
    private JRPrintElement printImage(String imageName, int posX, int posY, int width, int height) {
        try {
            image = new JRBasePrintImage(jasperPrint.getDefaultStyleProvider());
            image.setX(posX);
            image.setY(posY);
            image.setWidth(width);
            image.setHeight(height);
            image.setScaleImage(JRImage.SCALE_IMAGE_FILL_FRAME);
View Full Code Here

Examples of net.sf.jasperreports.engine.base.JRBasePrintImage

        }
        return jasperPrint;
    }
   
    private JRPrintElement printImage(String imageName, int posX, int posY, int width, int height) {
      JRBasePrintImage image = new JRBasePrintImage(jasperPrint.getDefaultStyleProvider());
      image.setX(posX);
      image.setY(posY);
      image.setWidth(width);
      image.setHeight(height);
      image.setScaleImage(JRImage.SCALE_IMAGE_FILL_FRAME);
        try {
           File photoPath = new File(Constants.PHOTO_DIR + imageName);
             if (photoPath.exists()) {
               image.setRenderer(
                   JRImageRenderer.getInstance(
                       JRImageLoader.loadImageDataFromLocation(Constants.PHOTO_DIR + imageName)
                   )
               );
             }
View Full Code Here

Examples of net.sf.jasperreports.engine.base.JRBasePrintImage

        text.setStyle(boldStyle);
        return text;
    }
   
    private JRPrintElement printImage(String imageName, int posX, int posY, int width, int height) {
      JRBasePrintImage image = new JRBasePrintImage(jasperPrint.getDefaultStyleProvider());
      image.setX(posX);
      image.setY(posY);
      image.setWidth(width);
      image.setHeight(height);
      image.setScaleImage(JRImage.SCALE_IMAGE_FILL_FRAME);
        try {
           File photoPath = new File(Constants.PHOTO_DIR + imageName);
             if (photoPath.exists()) {
               image.setRenderer(
                   JRImageRenderer.getInstance(
                       JRImageLoader.loadImageDataFromLocation(Constants.PHOTO_DIR + imageName)
                   )
               );
             }
View Full Code Here

Examples of net.sf.jasperreports.engine.base.JRBasePrintImage

        line.setHeight(15);
        return line;
    }
   
    private JRPrintElement printImage(String imageName, int posX, int posY, int width, int height) {
      JRBasePrintImage image = new JRBasePrintImage(jasperPrint.getDefaultStyleProvider());
      image.setX(posX);
      image.setY(posY);
      image.setWidth(width);
      image.setHeight(height);
      image.setScaleImage(JRImage.SCALE_IMAGE_FILL_FRAME);
        try {
           File photoPath = new File(Constants.PHOTO_DIR + imageName);
             if (photoPath.exists()) {
               image.setRenderer(
                   JRImageRenderer.getInstance(
                       JRImageLoader.loadImageDataFromLocation(Constants.PHOTO_DIR + imageName)
                   )
               );
             }
View Full Code Here

Examples of net.sf.jasperreports.engine.base.JRBasePrintImage

    return jasperPrint;
  }

  private JRPrintElement createBarcode(String code, int posX, int posY, int width, int height) {
    try {
      image = new JRBasePrintImage(jasperPrint.getDefaultStyleProvider());
      image.setX(posX);
      image.setY(posY);
      image.setWidth(width);
      image.setHeight(height);
      image.setScaleImage(JRImage.SCALE_IMAGE_FILL_FRAME);
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.