• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Paul Clapham
  • paul wheaton
Sheriffs:
  • Tim Cooke
  • Devaka Cooray
  • Rob Spoor
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:

relativepath image Jasperreport

 
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,

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 don't always make ads but when I do they're tiny
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic