NextReports Designer uses a web service to publish / download reports to a NextReports server.
To integrate reports in a proprietary application where we want to generate some reports with specific parameters from that application, we created a new report web service.
This will allow for a very simple integration with a NextReports server :
RunReportMetaData runReportMetaData = new RunReportMetaData(); runReportMetaData.setReportId(reportId); runReportMetaData.setFormat(HTML_FORMAT); Map parametersValues = new HashMap(); parametersValues.put("Id", 2); runReportMetaData.setParametersValues(parametersValues); try { String url = webService.runReport(runReportMetaData); } catch (WebServiceException e) { showError(e); }
No comments:
Post a Comment