How to generate and download the reports?

image
image
image
image

@Subscribe(id = “data1_bttn”, subject = “clickListener”)
public void onData1_bttnClick(final ClickEvent event) {
ReportOutputDocument document = reportRunner.byReportCode(“ACTIVITY_LOGS_REPORT”) // Use your actual report code
.addParam(“module”, 1)
.withTemplateCode(“DEFAULT”) // Optional: if you have multiple templates
.run();

}

How to generate and download the reports? Please correct it if the code was wrong.