How to automatically generate a report using JasperReports

I am working on NetBeans and want to "automatically generate" a report using JasperReports.

Here's the deal: I want to create a form that requests a date frame in order to execute a sql query and bring this information; then format it and generate a PDF report from it.

I see that JasperReports uses jrxml files compiled in .jasper to generate reports. I want to know if this jrxml can be automatically generated using some API code, or if I need to edit the jrxml file “programmatically” to automatically generate a report.

Thank gadget00

+3
source share
2 answers
+5

:

JasperExportManager.exportReportToPdfFile(jprint, pdfFileName);

.

+1

Source: https://habr.com/ru/post/1793641/


All Articles