Examples of JRBeanCollectionDataSource


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

  public static JRDataSource convertReportData(Object value) throws IllegalArgumentException {
    if (value instanceof JRDataSource) {
      return (JRDataSource) value;
    }
    else if (value instanceof Collection) {
      return new JRBeanCollectionDataSource((Collection) value);
    }
    else if (value instanceof Object[]) {
      return new JRBeanArrayDataSource((Object[]) value);
    }
    else {
View Full Code Here

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

  public static JRDataSource convertReportData(Object value) throws IllegalArgumentException {
    if (value instanceof JRDataSource) {
      return (JRDataSource) value;
    }
    else if (value instanceof Collection) {
      return new JRBeanCollectionDataSource((Collection) value);
    }
    else if (value instanceof Object[]) {
      return new JRBeanArrayDataSource((Object[]) value);
    }
    else {
View Full Code Here

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

  public static JRDataSource convertReportData(Object value) throws IllegalArgumentException {
    if (value instanceof JRDataSource) {
      return (JRDataSource) value;
    }
    else if (value instanceof Collection) {
      return new JRBeanCollectionDataSource((Collection) value);
    }
    else if (value instanceof Object[]) {
      return new JRBeanArrayDataSource((Object[]) value);
    }
    else if (value instanceof JRDataSourceProvider) {
View Full Code Here

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

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

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

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


  protected Map getModel() {
    Map model = new HashMap();
    model.put("ReportTitle", "Dear Lord!");
    model.put("dataSource", new JRBeanCollectionDataSource(getData()));
    extendModel(model);
    return model;
  }
View Full Code Here

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

    public MockDataSourceProvider(Class clazz) {
      super(clazz);
    }

    public JRDataSource create(JasperReport jasperReport) throws JRException {
      return new JRBeanCollectionDataSource(getData());
    }
View Full Code Here

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

import net.sf.jasperreports.engine.data.JRBeanCollectionDataSource;

public final class SistelecomRelatorio {

  public static <E> void gerarRelatorio(final InfoRelatorio<E> ier) throws Exception{
    final JRBeanCollectionDataSource beanCollectionDataSource = new JRBeanCollectionDataSource(ier.getColecao())
   
    final String caminhoDoArquivoJasper = ier.getContexto().getRealPath(ier.getCaminhoDoArquivoDeRelatorio());
   
    final JasperPrint jasperPrint = JasperFillManager.fillReport(caminhoDoArquivoJasper, ier.getParametros(), beanCollectionDataSource)
   
View Full Code Here

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

                orderItems.addAll(orderShipment.getOrderItems());
            }
           
            // TODO : denis : one page/table by OrderShipment
           
            JRDataSource datasource = new JRBeanCollectionDataSource(orderItems, true);
           
            final JasperPrint jasperPrint = JasperFillManager.fillReport(jasperReport, parameters, datasource);
           
            String fullFilePath = getOrderConfirmationFilePath(order);
            JasperExportManager.exportReportToPdfFile(jasperPrint, fullFilePath);
View Full Code Here

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

                orderItems.addAll(orderShipment.getOrderItems());
            }
           
            // TODO : denis : one page/table by OrderShipment
           
            JRDataSource datasource = new JRBeanCollectionDataSource(orderItems, true);
           
            final JasperPrint jasperPrint = JasperFillManager.fillReport(jasperReport, parameters, datasource);
           
            String fullFilePath = getShippingConfirmationFilePath(order);
            JasperExportManager.exportReportToPdfFile(jasperPrint, fullFilePath);
View Full Code Here

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

                orderItems.addAll(orderShipment.getOrderItems());
            }
           
            // TODO : denis : one page/table by OrderShipment
           
            JRDataSource datasource = new JRBeanCollectionDataSource(orderItems, true);
           
            final JasperPrint jasperPrint = JasperFillManager.fillReport(jasperReport, parameters, datasource);
           
            String fullFilePath = getInvoiceFilePath(order);
            JasperExportManager.exportReportToPdfFile(jasperPrint, fullFilePath);
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.