-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Resource not found when calling sub report #138
Comments
I used an parameter 'reportdirectory' as quickfix, and referenced the parameter in the subreportExpression ($P{reportdir}+"SubEmployee.jasper") |
Try using version |
Here is the example link. |
@arnaldocorreaxO Link available again. |
Will be closing soon due to lack of engagement. |
Describe the bug
I have one main report calling another sub report and that sub report calling another sub-sub-report.
Here is my code :
def run_jasper(incon, report_name, out_name, out_format, inpara):
input_file = os.path.join(REPORTS_DIR, report_name)
output_file = os.path.join(OUTPUT_DIR, out_name)
pyreportjasper = PyReportJasper()
pyreportjasper.config(
input_file,
output_file,
output_formats=out_format,
parameters=inpara,
resource=RESOURCE_DIR,
db_connection=incon,
)
print('Before calling report....')
pyreportjasper.process_report()
when I call this report, it throws the following error:
NameError: Error fill report: Erro fill internal: net.sf.jasperreports.engine.JRException: Resource not found at: repo:PB_Common_Data.jasper.
Could you please me know how to resolve this issue?
Desktop (please complete the following information):
Jaspersoft Studio (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: