You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have attempted several methods to generate the report, but the report with subreports has not been successfully produced. Below are two methods I have tried and the error messages. Please assist in providing a solution or an example.
Describe the bug
Jaspersoft Studio: Subreport OK!
Pyreportjasper: Subreport get some error
PyReportJasper setting:
Method1
pyreportjasper = PyReportJasper()
pyreportjasper.config(
input_file,
output_file,
db_connection=db_connection,
output_formats=output_formats,
parameters={
"start_date": '2024-01-01',
"end_date": '2024-01-31',
},
locale='en_US'
) Error Message(Method1):
Exception: Error fill report: Erro fill internal: net.sf.jasperreports.engine.JRException: Resource not found at:
We have released version 2.1.4, which implements data typing for parameters sent to the reports. Please try using the new version and let us know about your experience.
Still have subreport issue. Not sure If I should set up config for subreport or not.
Please help to provide the jrxml example with subreport case. Thank you!
I have attempted several methods to generate the report, but the report with subreports has not been successfully produced. Below are two methods I have tried and the error messages. Please assist in providing a solution or an example.
Describe the bug
Jaspersoft Studio: Subreport OK!
Pyreportjasper: Subreport get some error
PyReportJasper setting:
Method1
pyreportjasper = PyReportJasper()
pyreportjasper.config(
input_file,
output_file,
db_connection=db_connection,
output_formats=output_formats,
parameters={
"start_date": '2024-01-01',
"end_date": '2024-01-31',
},
locale='en_US'
)
Error Message(Method1):
Exception: Error fill report: Erro fill internal: net.sf.jasperreports.engine.JRException: Resource not found at:
Method2: add resource
pyreportjasper = PyReportJasper()
pyreportjasper.config(
input_file,
output_file,
db_connection=db_connection,
output_formats=output_formats,
parameters={
"start_date": '2024-01-01',
"end_date": '2024-01-31',
},
locale='en_US',
resource=RESOURCES_DIR
)
Error Message(Method2):
Exception: Error fill report: Erro fill internal: net.sf.jasperreports.engine.JRRuntimeException: net.sf.jasperreports.engine.JRException: Error loading object from InputStream.
Jrxml (subreport part):
Questions:
Desktop (please complete the following information):
Jaspersoft Studio (please complete the following information):
The text was updated successfully, but these errors were encountered: