Package net.sf.jasperreports.engine

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


              posY = convert(10);
            }

            posY += 19;
            page.addElement(drawGrayRectangle(posX, posY, 535, 22, 4));
            page.addElement(insertBoldText("Aluno: ", posX+5, posY+3,50));
            page.addElement(insertBoldText(registration.getStudent().getName(), posX+55, posY+3, 270));
            page.addElement(divTitleLine(posX+358));
            page.addElement(insertBoldText( ( !registration.getStudent().getPhone().equals("") ? "Telefone: " ( !registration.getStudent().getCellPhone().equals("") ? "Celular: " : "Sem Contato")  ), posX+365, posY+3,150));
            page.addElement(insertBoldText( ( !registration.getStudent().getPhone().equals("") ? registration.getStudent().getPhone() : registration.getStudent().getCellPhone()) , posX+420, posY+3, 150));
            if (!registration.getStudent().getPhone().equals("") || !registration.getStudent().getCellPhone().equals("")){
View Full Code Here


            }

            posY += 19;
            page.addElement(drawGrayRectangle(posX, posY, 535, 22, 4));
            page.addElement(insertBoldText("Aluno: ", posX+5, posY+3,50));
            page.addElement(insertBoldText(registration.getStudent().getName(), posX+55, posY+3, 270));
            page.addElement(divTitleLine(posX+358));
            page.addElement(insertBoldText( ( !registration.getStudent().getPhone().equals("") ? "Telefone: " ( !registration.getStudent().getCellPhone().equals("") ? "Celular: " : "Sem Contato")  ), posX+365, posY+3,150));
            page.addElement(insertBoldText( ( !registration.getStudent().getPhone().equals("") ? registration.getStudent().getPhone() : registration.getStudent().getCellPhone()) , posX+420, posY+3, 150));
            if (!registration.getStudent().getPhone().equals("") || !registration.getStudent().getCellPhone().equals("")){
              page.addElement(drawGrayRectangle(posX+512, posY+3, 18, 13, 2));
View Full Code Here

            posY += 19;
            page.addElement(drawGrayRectangle(posX, posY, 535, 22, 4));
            page.addElement(insertBoldText("Aluno: ", posX+5, posY+3,50));
            page.addElement(insertBoldText(registration.getStudent().getName(), posX+55, posY+3, 270));
            page.addElement(divTitleLine(posX+358));
            page.addElement(insertBoldText( ( !registration.getStudent().getPhone().equals("") ? "Telefone: " ( !registration.getStudent().getCellPhone().equals("") ? "Celular: " : "Sem Contato")  ), posX+365, posY+3,150));
            page.addElement(insertBoldText( ( !registration.getStudent().getPhone().equals("") ? registration.getStudent().getPhone() : registration.getStudent().getCellPhone()) , posX+420, posY+3, 150));
            if (!registration.getStudent().getPhone().equals("") || !registration.getStudent().getCellPhone().equals("")){
              page.addElement(drawGrayRectangle(posX+512, posY+3, 18, 13, 2));
            }
View Full Code Here

            posY += 19;
            page.addElement(drawGrayRectangle(posX, posY, 535, 22, 4));
            page.addElement(insertBoldText("Aluno: ", posX+5, posY+3,50));
            page.addElement(insertBoldText(registration.getStudent().getName(), posX+55, posY+3, 270));
            page.addElement(divTitleLine(posX+358));
            page.addElement(insertBoldText( ( !registration.getStudent().getPhone().equals("") ? "Telefone: " ( !registration.getStudent().getCellPhone().equals("") ? "Celular: " : "Sem Contato")  ), posX+365, posY+3,150));
            page.addElement(insertBoldText( ( !registration.getStudent().getPhone().equals("") ? registration.getStudent().getPhone() : registration.getStudent().getCellPhone()) , posX+420, posY+3, 150));
            if (!registration.getStudent().getPhone().equals("") || !registration.getStudent().getCellPhone().equals("")){
              page.addElement(drawGrayRectangle(posX+512, posY+3, 18, 13, 2));
            }
            posY += 19;
View Full Code Here

            page.addElement(drawGrayRectangle(posX, posY, 535, 22, 4));
            page.addElement(insertBoldText("Aluno: ", posX+5, posY+3,50));
            page.addElement(insertBoldText(registration.getStudent().getName(), posX+55, posY+3, 270));
            page.addElement(divTitleLine(posX+358));
            page.addElement(insertBoldText( ( !registration.getStudent().getPhone().equals("") ? "Telefone: " ( !registration.getStudent().getCellPhone().equals("") ? "Celular: " : "Sem Contato")  ), posX+365, posY+3,150));
            page.addElement(insertBoldText( ( !registration.getStudent().getPhone().equals("") ? registration.getStudent().getPhone() : registration.getStudent().getCellPhone()) , posX+420, posY+3, 150));
            if (!registration.getStudent().getPhone().equals("") || !registration.getStudent().getCellPhone().equals("")){
              page.addElement(drawGrayRectangle(posX+512, posY+3, 18, 13, 2));
            }
            posY += 19;
View Full Code Here

            page.addElement(insertBoldText(registration.getStudent().getName(), posX+55, posY+3, 270));
            page.addElement(divTitleLine(posX+358));
            page.addElement(insertBoldText( ( !registration.getStudent().getPhone().equals("") ? "Telefone: " ( !registration.getStudent().getCellPhone().equals("") ? "Celular: " : "Sem Contato")  ), posX+365, posY+3,150));
            page.addElement(insertBoldText( ( !registration.getStudent().getPhone().equals("") ? registration.getStudent().getPhone() : registration.getStudent().getCellPhone()) , posX+420, posY+3, 150));
            if (!registration.getStudent().getPhone().equals("") || !registration.getStudent().getCellPhone().equals("")){
              page.addElement(drawGrayRectangle(posX+512, posY+3, 18, 13, 2));
            }
            posY += 19;

            if (posY > (convert(297) - 36)) {
              jasperPrint.addPage(page);
View Full Code Here

            if (posY > (convert(297) - 36)) {
              jasperPrint.addPage(page);
              page = new JRBasePrintPage();
              posY = convert(10);
            }
            page.addElement(drawGrayRectangle(posX, posY, 535, 17, 0));
            page.addElement(insertBoldText("Matr: ", posX+5, posY+2, 170));
            page.addElement(insertText(bodyStyle,registration.getIdRegistration(), posX+35 ,35));
            page.addElement(divTitleLine(posX+70,posY));
            page.addElement(insertBoldText("Cursos: ", posX+73, posY+2, 170));
View Full Code Here

              jasperPrint.addPage(page);
              page = new JRBasePrintPage();
              posY = convert(10);
            }
            page.addElement(drawGrayRectangle(posX, posY, 535, 17, 0));
            page.addElement(insertBoldText("Matr: ", posX+5, posY+2, 170));
            page.addElement(insertText(bodyStyle,registration.getIdRegistration(), posX+35 ,35));
            page.addElement(divTitleLine(posX+70,posY));
            page.addElement(insertBoldText("Cursos: ", posX+73, posY+2, 170));

            page.addElement(insertText(bodyStyle,courses.substring(0, (courses.length()>2 ?  courses.length()-2 : courses.length())), posX+120, 340));
View Full Code Here

              page = new JRBasePrintPage();
              posY = convert(10);
            }
            page.addElement(drawGrayRectangle(posX, posY, 535, 17, 0));
            page.addElement(insertBoldText("Matr: ", posX+5, posY+2, 170));
            page.addElement(insertText(bodyStyle,registration.getIdRegistration(), posX+35 ,35));
            page.addElement(divTitleLine(posX+70,posY));
            page.addElement(insertBoldText("Cursos: ", posX+73, posY+2, 170));

            page.addElement(insertText(bodyStyle,courses.substring(0, (courses.length()>2 ?  courses.length()-2 : courses.length())), posX+120, 340));
            page.addElement(divTitleLine(posX+425,posY));
View Full Code Here

              posY = convert(10);
            }
            page.addElement(drawGrayRectangle(posX, posY, 535, 17, 0));
            page.addElement(insertBoldText("Matr: ", posX+5, posY+2, 170));
            page.addElement(insertText(bodyStyle,registration.getIdRegistration(), posX+35 ,35));
            page.addElement(divTitleLine(posX+70,posY));
            page.addElement(insertBoldText("Cursos: ", posX+73, posY+2, 170));

            page.addElement(insertText(bodyStyle,courses.substring(0, (courses.length()>2 ?  courses.length()-2 : courses.length())), posX+120, 340));
            page.addElement(divTitleLine(posX+425,posY));
            page.addElement(insertBoldText("T�rm: ", posX+427, posY+2, 170));
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.