我有一个jrxml文件,该文件需要一个参数来处理表达式,但是一旦我开始使用该参数,就会开始出现以下错误:
File xxxx.jrxml is not a valid jrxml file
以下是我的python代码:
from pyreportjasper import JasperPy
if __name__ == '__main__':
input_file = '/home/ubuntu1604/JaspersoftWorkspace/MyReports/Report_LD.jrxml'
output = '/home/mediaworker'
con = {
'driver': 'none',
'username': 'db_user',
'password': 'db_pass',
'database': 'db',
'port': '27107'
}
jasper = JasperPy()
jasper.process(
input_file,
output_file=output,
format_list=["pdf"],
parameters={"Param1": "hawkeye"},
db_connection=con,
locale='en_US'
)