File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Other Open Source Projects and the fly likes relativepath image Jasperreport Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "relativepath image Jasperreport" Watch "relativepath image Jasperreport" New topic

relativepath image Jasperreport

Luis Parente
Ranch Hand

Joined: Jan 17, 2012
Posts: 39

In an application I'm trying to make a report for each item in a list that I get from a BDD.

Each page must contain a logo .....

I tried to put the image in the beginning of all the pages .....
As in my jrxml the relative path is not appreciated. EX:

After a little google I pass the image in the map like this:

then in the jrxml I reporting this parameter:

then for display:

I don't know why, but <image> need to have onErrorType attribute set to "Blank", otherwise it does not work - throws exception

If I try to print multiple times this parameter (logo) does not work and I do not understand why? It is display only one time.

Thanks in advance.
I agree. Here's the link:
subject: relativepath image Jasperreport
jQuery in Action, 3rd edition