Package org.wicketstuff.jasperreports

Examples of org.wicketstuff.jasperreports.EmbeddedJRReport


    final File reportFile = new File(context.getRealPath("/reports/WebappReport.jasper"));

    final Map parameters = new HashMap();
    parameters.put("BaseDir", new File(context.getRealPath("/reports")));
    JRResource pdfResource = new JRPdfResource(reportFile).setReportParameters(parameters).setReportDataSource(new WebappDataSource());
    add(new EmbeddedJRReport("report", pdfResource));
  }
View Full Code Here


    final Map<String, Object> parameters = new HashMap<String, Object>();
    parameters.put("BaseDir", new File(context.getRealPath("/reports")));
    JRResource pdfResource = new JRConcreteResource<PdfResourceHandler>(reportFile,
      new PdfResourceHandler()).setReportParameters(parameters).setReportDataSource(
      new WebappDataSource());
    add(new EmbeddedJRReport("report", pdfResource));
  }
View Full Code Here

TOP

Related Classes of org.wicketstuff.jasperreports.EmbeddedJRReport

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.