How to Set Relative Path for Jasper Reports Image

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'

How to Set Relative Path for Jasper Reports Image_第1张图片

Reference:

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



你可能感兴趣的:(How to Set Relative Path for Jasper Reports Image)