I have created a Report that has output type set to HTML.
How do I retrieve the actual HTML generated from this report ?
This is as far as I have gotten:
String html = "";
String reportCode;
String templateCode;
reportCode = "HTML_REPORT";
templateCode = "DEFAULT";
Map<String, Object> reportParams = new HashMap<>();
reportParams.put("patient", patient);
ReportOutputDocument outDoc = reportGuiManager.getReportResult(
utilsService.getReport(reportCode),
reportParams,
templateCode,
ReportOutputType.HTML
);
byte[] byteArr = outDoc.getContent();