| NextReports Engine |
|
NextReports Engine is a lightweight (300 k) java reporting engine that could be embedded in any application or used on their own. You can download a Demo integration archive (contains the demo java code, all jar dependcies, nextreports engine library, nextreports engine javadoc). The examples from here show how to export a Next report in a supported output format : HTML, EXCEL, PDF, CSV, TSV, RTF, XML. FileOutputStream stream = new FileOutputStream("test.html"); FluentReportRunner.report(report) .connectTo(connection) .withQueryTimeout(60) .withParameterValues(createParameterValues()) .formatAs(ReportRunner.HTML_FORMAT) .run(stream); Practically, the previous code will export the 'report' xml object created by NextReports to a html file (test.html). You specify your java.sql.Connection , a timeout in seconds for query execution , the values for the parameters and the export format. |