Package net.sf.jasperreports.engine

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


                JRPrintPage page = new JRBasePrintPage();
               
                posY = convert(10);
                posX = convert(10);
               
                page.addElement(printImage("topReportBirthdateList.gif", posX, posY, 535, 127));
//                page.addElement(printImage("visualMidiaLogo.gif", posX+367, posY+7, 77, 45));
//                page.addElement(printImage("corporateLogo.jpg", posX+452, posY+7, 77, 45));
               
                page.addElement(printTitleText("M�s de "+monthString, convert(10)+350, posY+65, 175));
               
View Full Code Here


               
                page.addElement(printImage("topReportBirthdateList.gif", posX, posY, 535, 127));
//                page.addElement(printImage("visualMidiaLogo.gif", posX+367, posY+7, 77, 45));
//                page.addElement(printImage("corporateLogo.jpg", posX+452, posY+7, 77, 45));
               
                page.addElement(printTitleText("M�s de "+monthString, convert(10)+350, posY+65, 175));
               
                posY += 127;
               
                createHeader(page);
               
View Full Code Here

                posY += 127;
               
                createHeader(page);
               
                for (Person person : birthdayList) {
                    page.addElement(printNormalText(person.getBirthDate().split("/")[0], posX+5, posY, 30));
                    page.addElement(printHorizontalLine(posX+40, posY, 15));
                    page.addElement(printNormalText(person.getName(), posX+43, posY, 490));
                   
                    posY += 15;
                   
View Full Code Here

               
                createHeader(page);
               
                for (Person person : birthdayList) {
                    page.addElement(printNormalText(person.getBirthDate().split("/")[0], posX+5, posY, 30));
                    page.addElement(printHorizontalLine(posX+40, posY, 15));
                    page.addElement(printNormalText(person.getName(), posX+43, posY, 490));
                   
                    posY += 15;
                   
                    if(posY > (convert(297)-20)){
View Full Code Here

                createHeader(page);
               
                for (Person person : birthdayList) {
                    page.addElement(printNormalText(person.getBirthDate().split("/")[0], posX+5, posY, 30));
                    page.addElement(printHorizontalLine(posX+40, posY, 15));
                    page.addElement(printNormalText(person.getName(), posX+43, posY, 490));
                   
                    posY += 15;
                   
                    if(posY > (convert(297)-20)){
                        jasperPrint.addPage(page);
View Full Code Here

                for (Person person : birthdayList) {
                    String firstName = person.getName().split(" ")[0];
                   
                    JRPrintPage page = new JRBasePrintPage();
                   
                    page.addElement(image);
                   
                    text = new JRBasePrintText(jasperPrint.getDefaultStyleProvider());
                    text.setText("Para");
                    text.setX(posX+110);
                    text.setY(posY+250);
View Full Code Here

                    text.setHeight(18);
                    text.setHorizontalAlignment(JRAlignment.HORIZONTAL_ALIGN_LEFT);
                    text.setLineSpacingFactor(2.0f);
                    text.setLeadingOffset(-4.0f);
                    text.setStyle(boldStyle);
                    page.addElement(text);
                   
                    text = new JRBasePrintText(jasperPrint.getDefaultStyleProvider());
                    text.setText(person.getName()+",");
                    text.setX(posX+110);
                    text.setY(posY+280);
View Full Code Here

                    text.setHeight(18);
                    text.setHorizontalAlignment(JRAlignment.HORIZONTAL_ALIGN_LEFT);
                    text.setLineSpacingFactor(2.0f);
                    text.setLeadingOffset(-4.0f);
                    text.setStyle(boldStyle);
                    page.addElement(text);
                   
                    text = new JRBasePrintText(jasperPrint.getDefaultStyleProvider());
                    if (canAddPersonToBirthdayList(person)){
                      text.setText(firstName+", para voc� que est� presente, " +
                          "convivendo conosco, vivendo um pouco do nosso  trabalho, desejamos que, " +
View Full Code Here

                    text.setHeight(250);
                    text.setHorizontalAlignment(JRAlignment.HORIZONTAL_ALIGN_JUSTIFIED);
                    text.setLineSpacingFactor(10.0f);
                    text.setLeadingOffset(-4.0f);
                    text.setStyle(bodyStyle);
                    page.addElement(text);
                   
                    text = new JRBasePrintText(jasperPrint.getDefaultStyleProvider());
                    text.setText("FELICIDADES!");
                    text.setX(posX+165);
                    text.setY(posY+500);
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);
                   
                    text = new JRBasePrintText(jasperPrint.getDefaultStyleProvider());
                    text.setText("Um abra�o,");
                    text.setX(posX+225);
                    text.setY(posY+570);
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.