Package net.sf.jasperreports.engine.data

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


                    "File allAccountHTML.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


            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

            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

        }
        return jv;
    }
   
    public static JasperViewer printJasper(JasperReport report, Map parameter, Collection dataSource, int printOrPreview, boolean withPrintDialog) throws JRException {
        JRBeanCollectionDataSource ds = new JRBeanCollectionDataSource(dataSource);
        JasperPrint jp = JasperFillManager.fillReport(report, parameter, ds);
        return printJasper(jp, printOrPreview, withPrintDialog);
    }
View Full Code Here

        JasperPrint jp = JasperFillManager.fillReport(report, parameter, ds);
        return printJasper(jp, printOrPreview, withPrintDialog);
    }
   
    public static JasperViewer printJasper(String fileName, Map parameter, Collection dataSource, int printOrPreview, boolean withPrintDialog) throws JRException {
        JRBeanCollectionDataSource ds = new JRBeanCollectionDataSource(dataSource);
        JasperPrint jp = JasperFillManager.fillReport(fileName, parameter, ds);
        return printJasper(jp, printOrPreview, withPrintDialog);
    }
View Full Code Here

        JRBeanCollectionDataSource ds = new JRBeanCollectionDataSource(dataSource);
        JasperPrint jp = JasperFillManager.fillReport(fileName, parameter, ds);
        return printJasper(jp, printOrPreview, withPrintDialog);
    }
    public static JasperViewer printJasper(String fileName, Map parameter, Collection dataSource, int printOrPreview, boolean withPrintDialog, String title) throws JRException {
        JRBeanCollectionDataSource ds = new JRBeanCollectionDataSource(dataSource);
        JasperPrint jp = JasperFillManager.fillReport(fileName, parameter, ds);
        return printJasper(jp, printOrPreview, withPrintDialog, title);
    }
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

      paramMap.put("storeName", store.getName());
      paramMap.put("storeAddress", store.getAddress());
      paramMap.put("storeCity", store.getCity());
    }
       
    JRBeanCollectionDataSource ds = new JRBeanCollectionDataSource(list);
   
    try {
      JasperPrint jasperPrint = JasperFillManager.fillReport(jasperFileStream, paramMap, ds);
      if("pdf".equalsIgnoreCase(type)){
        respFile = File.createTempFile("sunflower_", ".pdf");
View Full Code Here

      paramMap.put("storeName", store.getName());
      paramMap.put("storeAddress", store.getAddress());
      paramMap.put("storeCity", store.getCity());
    }
*/       
    JRBeanCollectionDataSource ds = new JRBeanCollectionDataSource(list);
   
    try {
      JasperPrint jasperPrint = JasperFillManager.fillReport(jasperFileStream, paramMap, ds);
      if("pdf".equalsIgnoreCase(type)){
        respFile = File.createTempFile("sunflower_", ".pdf");
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.