Friday, February 27, 2009

How to integrate NextReports


In your applications, running reports generated from NextReports is a very simple process to implement. The following lines are self-explanatory :
FileOutputStream stream = new FileOutputStream("test.html");
FluentReportRunner.report(report)
.connectTo(connection)
.withQueryTimeout(60)
.withParameterValues(createParameterValues())
.formatAs(ReportRunner.HTML_FORMAT)
.run(stream);

No comments: