Package net.sf.jasperreports.engine.data

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


    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

        ResourceBundle.getBundle("org/springframework/ui/jasperreports/messages", Locale.GERMAN));
    return model;
  }

  private JRDataSource getDataSource() {
    return new JRBeanCollectionDataSource(getData());
  }
View Full Code Here

  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

@Controller
public class EnMeTestPdfReport extends AbstractBaseOperations{

     @RequestMapping(value ="/report.pdf", method = RequestMethod.GET)
     public String report(ModelMap modelMap) {
          JRBeanCollectionDataSource jrDataSource = new JRBeanCollectionDataSource(ListUtils.EMPTY_LIST,false);
          modelMap.put("encuestameTestReportList", jrDataSource);
          return "encuestameTestReportList";
     }
View Full Code Here

  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

    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

            throw new JRRuntimeException("Jasper report file is not found");
        }
        JasperReport jasperReport = (JasperReport) JRLoader
                .loadObjectFromFile(reportFile.getPath());
        JasperPrint jasperPrint = JasperFillManager.fillReport(jasperReport,
                map, new JRBeanCollectionDataSource(list));
        JRHtmlExporter exporter = new JRHtmlExporter();
        StringBuffer buffer = new StringBuffer();

        exporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);
        exporter.setParameter(JRExporterParameter.OUTPUT_STRING_BUFFER, buffer);
View Full Code Here

            throw new JRRuntimeException("Jasper report file is not found");
        }
        JasperReport jasperReport = (JasperReport) JRLoader
                .loadObjectFromFile(reportFile.getPath());
        JasperPrint jasperPrint = JasperFillManager.fillReport(jasperReport,
                map, new JRBeanCollectionDataSource(list));
        JRHtmlExporter exporter = new JRHtmlExporter();
        StringBuffer buffer = new StringBuffer();

        exporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);
        exporter.setParameter(JRExporterParameter.OUTPUT_STRING_BUFFER, buffer);
View Full Code Here

                    "File allContactHTML.jasper is not found");
        }
        JasperReport jasperReport = (JasperReport) JRLoader
                .loadObjectFromFile(reportFile.getPath());
        JasperPrint jasperPrint = JasperFillManager.fillReport(jasperReport,
                map, new JRBeanCollectionDataSource(list));
        JRHtmlExporter exporter = new JRHtmlExporter();
        StringBuffer buffer = new StringBuffer();

        exporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);
        exporter.setParameter(JRExporterParameter.OUTPUT_STRING_BUFFER, buffer);
View Full Code Here

TOP

Related Classes of net.sf.jasperreports.engine.data.JRBeanCollectionDataSource

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.