Examples of JRBeanCollectionDataSource


Examples of net.sf.jasperreports.engine.data.JRBeanCollectionDataSource

    EIMSAppFrame.getInstance().addView(component);
  }
 
  public static void showReport(String reportPath, List<DBObject> data,
      Map params) throws Exception {
    JRBeanCollectionDataSource dataSource = new JRBeanCollectionDataSource(
        data);
    JasperReport jasperReport = (JasperReport) JRLoader
        .loadObject(reportPath);

    JasperPrint print = JasperFillManager.fillReport(jasperReport, params,
View Full Code Here

Examples of net.sf.jasperreports.engine.data.JRBeanCollectionDataSource

            JasperReport jasperReport = JasperCompileManager.compileReport(jasperDesign);

            FacesContext  context = FacesContext.getCurrentInstance();
              HttpServletResponse response = (HttpServletResponse) context.getExternalContext().getResponse();
       if(rs instanceof List)  { 
         JRBeanCollectionDataSource ds = new JRBeanCollectionDataSource((List) rs);
         jasperPrint = JasperFillManager.fillReport(jasperReport, parametters,ds);
                                }
if(rs instanceof ResultSet) {
       JRResultSetDataSource ds=new  JRResultSetDataSource((ResultSet)rs);
           jasperPrint = JasperFillManager.fillReport(jasperReport, parametters,ds);
View Full Code Here

Examples of net.sf.jasperreports.engine.data.JRBeanCollectionDataSource

    if (dsCandidate instanceof JRDataSource)
      return (JRDataSource) dsCandidate;

    if (dsCandidate instanceof Collection)
      return new JRBeanCollectionDataSource((Collection) dsCandidate);

    if (dsCandidate instanceof ResultSet)
      return new JRResultSetDataSource((ResultSet) dsCandidate);

    if (dsCandidate.getClass().isArray())
View Full Code Here

Examples of net.sf.jasperreports.engine.data.JRBeanCollectionDataSource

    if (dsCandidate instanceof JRDataSource)
      return (JRDataSource) dsCandidate;

    if (dsCandidate instanceof Collection)
      return new JRBeanCollectionDataSource((Collection) dsCandidate);

    if (dsCandidate instanceof ResultSet)
      return new JRResultSetDataSource((ResultSet) dsCandidate);

    if (dsCandidate.getClass().isArray())
View Full Code Here

Examples of net.sf.jasperreports.engine.data.JRBeanCollectionDataSource

  public static JasperPrint generateJasperPrint(DynamicReport dr, LayoutManager layoutManager, JRDataSource ds) throws JRException {
        return generateJasperPrint(dr, layoutManager, ds, new HashMap());
    }

  public static JasperPrint generateJasperPrint(DynamicReport dr, LayoutManager layoutManager, Collection collection) throws JRException {
    JRDataSource ds = new JRBeanCollectionDataSource(collection);
    return generateJasperPrint(dr, layoutManager, ds, new HashMap());
  }
View Full Code Here

Examples of net.sf.jasperreports.engine.data.JRBeanCollectionDataSource

     
      parametros.put("pagina", paginaInt );
      parametros.put( "data" , data );
      parametros.put( "titulo" , titulo );     
     
      JRBeanCollectionDataSource ds = new JRBeanCollectionDataSource(relatorioDS);
     
      JasperPrint capa = JasperService.fillReport(relatorioCapaJasper,parametros );
      JasperPrint rel = JasperService.fillReport(relatorioJasper,parametros, ds);
     
      ByteArrayOutputStream out = new ByteArrayOutputStream();
View Full Code Here

Examples of net.sf.jasperreports.engine.data.JRBeanCollectionDataSource

      JasperReport relatorioCapa = JasperService.loadReport( pathRelPPACapa );
     
      //printParam( tipoParametro, listaProgramas, orgao, listaCriteriosCom, listaCriteriosSem, data,pagina,titulo);
     
      ArrayList<RelatorioPPABean> relatorioDS = service.generatePPA( tipoParametro, listaProgramas, orgao, listaCriteriosCom, listaCriteriosSem);
      JRBeanCollectionDataSource ds = new JRBeanCollectionDataSource(relatorioDS);
     
      // Parametros
      parametros.put("pagina", paginaInt );
      parametros.put( "data" , data );
      parametros.put( "titulo" , titulo );
View Full Code Here

Examples of net.sf.jasperreports.engine.data.JRBeanCollectionDataSource

      parametros.put("totalExer2", service.getTotalGeral2() );
      parametros.put("totalExer3", service.getTotalGeral3() );
      parametros.put("totalExer4", service.getTotalGeral4() );
      parametros.put("totalGeral", service.getTotalGeral() );     
     
      JRBeanCollectionDataSource ds = new JRBeanCollectionDataSource(relatorioDS);
     
      JasperPrint capa = JasperService.fillReport(relatorioCapaJasper,parametros );
      JasperPrint rel = JasperService.fillReport(relatorioJasper,parametros, ds);
     
      ByteArrayOutputStream out = new ByteArrayOutputStream();
View Full Code Here

Examples of net.sf.jasperreports.engine.data.JRBeanCollectionDataSource

      parametros.put("totalExer2", service.getTotalGeral2() );
      parametros.put("totalExer3", service.getTotalGeral3() );
      parametros.put("totalExer4", service.getTotalGeral4() );
      parametros.put("totalGeral", service.getTotalGeral() );
     
      JRBeanCollectionDataSource ds = new JRBeanCollectionDataSource(relatorioDS);
     
      JasperPrint capa = JasperService.fillReport(relatorioCapaJasper,parametros );
      JasperPrint rel = JasperService.fillReport(relatorioJasper,parametros, ds);
     
      ByteArrayOutputStream out = new ByteArrayOutputStream();
View Full Code Here

Examples of net.sf.jasperreports.engine.data.JRBeanCollectionDataSource

  private void buildRel(HttpServletResponse resp, List<?> listDTO, Report tRep) throws IOException {
   
    JasperReport report = JasperService.loadReport(JasperService.class.getResource("/peJasper/"
        + tRep.getReportName()).getPath());
   
    JRBeanCollectionDataSource beanDS = new JRBeanCollectionDataSource(listDTO);
    Map<String, String> param = new HashMap<String, String>();
   

    for (int i = 0;  i < listCiclos.size(); i++) {
      String p = "ciclo"+(i+1);
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.