Package net.sf.jasperreports.engine

Examples of net.sf.jasperreports.engine.JRPrintPage.addElement()


                    text.setHeight(18);
                    text.setHorizontalAlignment(JRAlignment.HORIZONTAL_ALIGN_LEFT);
                    text.setLineSpacingFactor(2.0f);
                    text.setLeadingOffset(-4.0f);
                    text.setStyle(bodyStyle);
                    page.addElement(text);
                   
                    int widthText = gd.get("namefancy").toString().length() * 9;
                   
                    JRPrintLine line = new JRBasePrintLine(jasperPrint.getDefaultStyleProvider());
                    line.setX(posX+260);
View Full Code Here


                    JRPrintLine line = new JRBasePrintLine(jasperPrint.getDefaultStyleProvider());
                    line.setX(posX+260);
                    line.setY(posY+670);
                    line.setWidth(widthText);
                    line.setHeight(0);
                    page.addElement(line);
                   
                   
                    text = new JRBasePrintText(jasperPrint.getDefaultStyleProvider());
                    text.setText(gd.get("namefancy").toString());
                    text.setX(posX+260);
View Full Code Here

                    text.setHeight(20);
                    text.setHorizontalAlignment(JRAlignment.HORIZONTAL_ALIGN_CENTER);
                    text.setLineSpacingFactor(2.0f);
                    text.setLeadingOffset(-4.0f);
                    text.setStyle(boldStyle);
                    page.addElement(text);
                   
                    jasperPrint.addPage(page);
                }
            }
        } catch (Exception e) {
View Full Code Here

       
        JRPrintPage page = new JRBasePrintPage();
        posY = convert(10);
        int posX =convert(10);
       
        page.addElement(printImage("titleReport.gif", posX, posY, 535, 45));
//        page.addElement(printImage("logoReport.gif", posX+11, posY, 65, 45));
        page.addElement(insertTitle("Relat�rio de presen�as", posX+65, posY+11, 385));
        page.addElement(printImage("corporateLogo.jpg", posX+456, posY, 77, 45));
       
        posY += 50;
View Full Code Here

        posY = convert(10);
        int posX =convert(10);
       
        page.addElement(printImage("titleReport.gif", posX, posY, 535, 45));
//        page.addElement(printImage("logoReport.gif", posX+11, posY, 65, 45));
        page.addElement(insertTitle("Relat�rio de presen�as", posX+65, posY+11, 385));
        page.addElement(printImage("corporateLogo.jpg", posX+456, posY, 77, 45));
       
        posY += 50;
       
        try {
View Full Code Here

        int posX =convert(10);
       
        page.addElement(printImage("titleReport.gif", posX, posY, 535, 45));
//        page.addElement(printImage("logoReport.gif", posX+11, posY, 65, 45));
        page.addElement(insertTitle("Relat�rio de presen�as", posX+65, posY+11, 385));
        page.addElement(printImage("corporateLogo.jpg", posX+456, posY, 77, 45));
       
        posY += 50;
       
        try {
                Person student = (Person) system.query(new GetStudent(idStudent));
View Full Code Here

       
        posY += 50;
       
        try {
                Person student = (Person) system.query(new GetStudent(idStudent));
                page.addElement(drawGrayRectangle(posX, posY, 535, 20, 3));
                page.addElement(insertTitle(boldStyle, "Aluno: " + student.getName(), posX+5, posY+5));
               
                posY += 25;
               
                page.addElement(drawRectangle(posX, posY, 535, 15, 0));
View Full Code Here

        posY += 50;
       
        try {
                Person student = (Person) system.query(new GetStudent(idStudent));
                page.addElement(drawGrayRectangle(posX, posY, 535, 20, 3));
                page.addElement(insertTitle(boldStyle, "Aluno: " + student.getName(), posX+5, posY+5));
               
                posY += 25;
               
                page.addElement(drawRectangle(posX, posY, 535, 15, 0));
                page.addElement(insertCenterBoldText("Data", posX+5, posY, 80));
View Full Code Here

                page.addElement(drawGrayRectangle(posX, posY, 535, 20, 3));
                page.addElement(insertTitle(boldStyle, "Aluno: " + student.getName(), posX+5, posY+5));
               
                posY += 25;
               
                page.addElement(drawRectangle(posX, posY, 535, 15, 0));
                page.addElement(insertCenterBoldText("Data", posX+5, posY, 80));
                page.addElement(divLine(posX+85));
                page.addElement(insertCenterBoldText("Hora", posX+90, posY, 50));
                page.addElement(divLine(posX+140));
                page.addElement(insertCenterBoldText("Status", posX+145, posY, 390));
View Full Code Here

                page.addElement(insertTitle(boldStyle, "Aluno: " + student.getName(), posX+5, posY+5));
               
                posY += 25;
               
                page.addElement(drawRectangle(posX, posY, 535, 15, 0));
                page.addElement(insertCenterBoldText("Data", posX+5, posY, 80));
                page.addElement(divLine(posX+85));
                page.addElement(insertCenterBoldText("Hora", posX+90, posY, 50));
                page.addElement(divLine(posX+140));
                page.addElement(insertCenterBoldText("Status", posX+145, posY, 390));
   
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.