Package net.sf.jasperreports.engine

Examples of net.sf.jasperreports.engine.JasperReport


        try {

            URL url1 = CursosDeUnaPersona.class.getResource(
                    "cursosdeunapersona.jasper");
            JasperReport jasperReport = (JasperReport) JRLoader.loadObject(
                    url1);

            Vector v = new Vector();
            Iterator iter = persona.getSetAlumno().iterator();
            while (iter.hasNext()) {
View Full Code Here


        try {

            URL url1 = CobrosPorCurso.class.getResource(
                    "cobrosporcurso.jasper");
            JasperReport jasperReport = (JasperReport) JRLoader.loadObject(
                    url1);

            // Create a calendar object of the desired month
            Calendar calPrueba = new GregorianCalendar(year, month, 1);
View Full Code Here

            calYear.setTime(date);
          int yearCalculoMorosidad =  calYear.get(GregorianCalendar.YEAR);

            URL url1 = AlumnosMorosos.class.getResource(
                    "alumnosmorosos.jasper");
            JasperReport jasperReport = (JasperReport) JRLoader.loadObject(
                    url1);

            // Create a calendar object of the desired month
            Calendar calPrueba = new GregorianCalendar(yearCalculoMorosidad, month, 1);
View Full Code Here

            int yearCalculoMorosidad = yearCurso;

            URL url1 = ReporteMoraPorPersona.class.getResource(
                    "alumnosmorosos.jasper");
            JasperReport jasperReport = (JasperReport) JRLoader.loadObject(
                    url1);

            // Create a calendar object of the desired month
            Calendar calPrueba = new GregorianCalendar(yearCalculoMorosidad,
                    month, 1);
View Full Code Here

            calYear.setTime(date);
            int yearCalculoMorosidad = calYear.get(GregorianCalendar.YEAR);

            URL url1 = AlumnosMorosos.class.getResource(
                    "alumnosmorososlistado.jasper");
            JasperReport jasperReport = (JasperReport) JRLoader.loadObject(
                    url1);

            // Create a calendar object of the desired month
            Calendar calPrueba = new GregorianCalendar(yearCalculoMorosidad,
                    month, 1);
View Full Code Here

 
  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,
        dataSource);
    JasperViewer viewer = new JasperViewer(print, false);
View Full Code Here

    /********************************** Avis Operation *****************************************/
    public String imprimerRapport(String format, String modeleRapport,String nomRapport,Object rs,Map parametters) {
      try{
        byte[] bytes ;JasperPrint jasperPrint=null;
          JasperDesign jasperDesign = JRXmlLoader.load(readProperties.readChemin("Etats.local")+modeleRapport);
            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);
View Full Code Here

    if (subreport.getPath() == null && subreport.getDynamicReport() == null && subreport.getReport() == null)
      throw new DJBuilderException("No subreport origin defined (path, dynamicReport, jasperReport)");

    //If the subreport comes from a file, then we load it now
    if (subreport.getPath() != null) {
      JasperReport jr = null;
      File file = new File(subreport.getPath());
      if (file.exists()){
        logger.debug("Loading subreport from file path");
        try {
          jr = (JasperReport) JRLoader.loadObject(file);
View Full Code Here

     */
    protected JasperReport compileReport() throws JRException {
        byte[] byteArray = reportTemplate.getContents().getBytes();
        ByteArrayInputStream designStream = new ByteArrayInputStream(byteArray);
        logger.debug("Compiling report...");
        JasperReport jasperReport = JasperCompileManager.compileReport(designStream);
        return jasperReport;
    }
View Full Code Here

//            JRProperties.setProperty(JRProperties.COMPILER_CLASS, DJCompilerFactory.getCompilerClassName());
//
//            JasperReport jr = JasperCompileManager.compileReport(jd);
//            params.putAll(jd.getParametersWithValues());

            JasperReport jr = DynamicJasperHelper.generateJasperReport(dr, layoutManager, _parameters);
            jp = JasperFillManager.fillReport(jr, _parameters, ds);

            return jp;
  }
View Full Code Here

TOP

Related Classes of net.sf.jasperreports.engine.JasperReport

Copyright © 2018 www.massapicom. 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.