Hi Marc & Bernd
Thanks for your comments.
The situation is this:
- I have a report directory in my dev. environment and one in the production environment
- the paths are obviously not the same
- I store the custom graphic file alongside the report in the same direcotryy
This said, I get the following behaviour:
- Jaspersort Studio: just putting a "MyLogo.jpg" in the image Expression property of the Image control works, the graphic Displays. Doesn't work either in dev. and prod.
- puting a fully qualified path in front of the Image Name (e.g. "c:/myPath/MyLogo.jpg" works both in dev and prod but in that case, I have to change the path Information within the report before deploying. Not a very good idea.
- in a report with subreports I can use $P{SUBREPORT_DIR} + "/MyLog.jpg" and it works both in dev and prod
The $P{SUBREPORT_DIR} Parameter will be created by Jasper only if I use a subreport. My Intention is now to use a function/Parameter/whatever to get the same Information as $P{SUBREPORT_DIR} and I will hve a truly portable Report.
I hope, I did now express my intentions a little more precise
Thanks for any suggestions.