Package ar.com.fdvs.dj.domain.builders

Examples of ar.com.fdvs.dj.domain.builders.FastReportBuilder.build()


        try {
            FastReportBuilder reportBuilder = new FastReportBuilder();
            reportBuilder.setTitle("IWebMvc - Sample Grid Report").setSubtitle("Generated at " + new Date()).setUseFullPageWidth(true);
            for (String column : data.getColumns()) reportBuilder.addColumn(column, column, String.class.getName(), 1);
            JRDataSource ds = new JRBeanCollectionDataSource(data.getData(), false);
            JasperPrint jp = DynamicJasperHelper.generateJasperPrint(reportBuilder.build(), new ClassicLayoutManager(), ds);
            return "EXCEL".equals(docType) ? exportToExcel(jp) : exportToPDF(jp);
        } catch (Exception e) {
            throw new IWebMvcException("Error building grid report", e);
        }
    }
View Full Code Here


    drb.setTitle(this.zksample2title);
    drb.setSubtitle("List of branches: " + ZksampleDateFormat.getDateFormater().format(new Date()));
    drb.setSubtitleStyle(subtitleStyle);
    drb.setPrintBackgroundOnOddRows(true);
    drb.setUseFullPageWidth(true);
    dr = drb.build();

    // Get information from database
    BrancheService as = (BrancheService) SpringUtil.getBean("brancheService");
    List<Branche> resultList = as.getAllBranches();
View Full Code Here

    drb.setTitle(this.zksample2title);
    drb.setSubtitle("List of security roles: " + ZksampleDateFormat.getDateFormater().format(new Date()));
    drb.setSubtitleStyle(subtitleStyle);
    drb.setPrintBackgroundOnOddRows(true);
    drb.setUseFullPageWidth(true);
    dr = drb.build();

    // Get information from database
    SecurityService as = (SecurityService) SpringUtil.getBean("securityService");
    List<SecRole> resultList = as.getAllRoles();
View Full Code Here

    AutoText footerText = new AutoText("Help to prevent the global warming by writing cool software.", AutoText.POSITION_FOOTER, HorizontalBandAlignment.CENTER);
    footerText.setStyle(getDjReportStyles().getFooterStyle());
    rb.addAutoText(footerText);

    DynamicReport dr = new DynamicReport();
    dr = rb.build();

    return dr;

  }
View Full Code Here

    drb.setTitle(this.zksample2title);
    drb.setSubtitle("List of Offices: " + ZksampleDateFormat.getDateTimeFormater().format(new Date()));
    drb.setSubtitleStyle(subtitleStyle);
    drb.setPrintBackgroundOnOddRows(true);
    drb.setUseFullPageWidth(true);
    dr = drb.build();

    // Get information from database
    OfficeService as = (OfficeService) SpringUtil.getBean("officeService");
    List<Office> resultList = as.getAllOffices();
View Full Code Here

    drb.setTitle(this.zksample2title);
    drb.setSubtitle("List of security roles: " + ZksampleDateFormat.getDateFormater().format(new Date()));
    drb.setSubtitleStyle(subtitleStyle);
    drb.setPrintBackgroundOnOddRows(true);
    drb.setUseFullPageWidth(true);
    dr = drb.build();

    // Get information from database
    SecurityService as = (SecurityService) SpringUtil.getBean("securityService");
    List<SecGroup> resultList = as.getAllGroups();
View Full Code Here

    drb.setTitle(this.zksample2title);
    drb.setSubtitle("Article-List: " + ZksampleDateFormat.getDateFormater().format(new Date()));
    drb.setTitleStyle(djrst.getTitleStyle());
    drb.setPrintBackgroundOnOddRows(true);
    drb.setUseFullPageWidth(true);
    dr = drb.build();

    // Get information from database
    ArticleService as = (ArticleService) SpringUtil.getBean("articleService");
    List<Article> resultList = as.getAllArticles();
View Full Code Here

        drb.setTitle(title);
        // drb.setPrintBackgroundOnOddRows(true);
        drb.setUseFullPageWidth(true);
        drb.setPageSizeAndOrientation(Page.Page_A4_Landscape());

        final DynamicReport dynamicReport = drb.build();

        // Simple report
        final JasperReport report = DynamicJasperHelper.generateJasperReport(dynamicReport, new ClassicLayoutManager(), new HashMap<Object, Object>());

        final byte[] reportBytes = JasperRunManager.runReportToPdf(report, new HashMap<Object, Object>(), new DynamicExportDataSource(records));
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.