How to Set Relative Path for Jasper Reports Image

来源:互联网 发布:香港阿里云 编辑:程序博客网 时间:2024/06/04 18:26

When developing Jasper Reports in a team, absolute image path would cause a lot of collaboration problem, one path exists in one developer's computer may not exists in other's. So, we'd better have a relative one.

Project structure:

----report-project

--------resources

------------logo.png

--------mainreport.jxrml

our image path expression should be: 'resources/logo.png'

relative path

Reference:

[1] http://www.coderanch.com/t/63485/open-source/Referencing-image-Jasper-Report


0 0
原创粉丝点击