Connecting Tech Pros Worldwide Help | Site Map

Watermark background image problem in HTML jasper Report

  #1  
Old June 16th, 2009, 08:20 AM
karthickkuchanur's Avatar
Familiar Sight
 
Join Date: Dec 2007
Posts: 135
I am using JasperReports 2.0.5. I am trying to use the background tag to generate a watermark image for my reports. JRXML source is below and also attached.The problem is that I do not get HTML generated fort the ImageServlet to generate the image when I have other bands defined in the report, e.g. a detail band. It works fine when I have only the background tage defined but no detail band. Furthermore, I get the correct output in PDF with multiple bands, so it is an HTML only problem. The ImageServlet works fine and displays the image when I have no other bands defined, so I think my ImageServlet is configured correctly. Any ideas on what I am doing wrong? Does anyone have an example of a report using a watermark image served up by a webapp using Jasper 2.0.5?

Any pointers/references/info appreciated!
  #2  
Old June 17th, 2009, 07:31 AM
Administrator
 
Join Date: Sep 2006
Posts: 12,084

re: Watermark background image problem in HTML jasper Report


I would suggest using iReport to create and compile the reports. You can design them as you wish (add the images e.t.c) and compile and test them in iReport before trying to call them in servlets.
  #3  
Old June 17th, 2009, 09:47 AM
karthickkuchanur's Avatar
Familiar Sight
 
Join Date: Dec 2007
Posts: 135

re: Watermark background image problem in HTML jasper Report


The Real issue is when we there is anything overlap (Like test or anuthing)the Back ground ,The back ground image is not viewed ,i found this base issue ,if it is empty back ground it viewed correctly
  #4  
Old June 17th, 2009, 09:55 AM
Administrator
 
Join Date: Sep 2006
Posts: 12,084

re: Watermark background image problem in HTML jasper Report


I'm not sure I understand your latest response but you should be able to add background images to a jasper report very easily using the iReport tool that I suggested above.
  #5  
Old June 17th, 2009, 10:21 AM
karthickkuchanur's Avatar
Familiar Sight
 
Join Date: Dec 2007
Posts: 135

re: Watermark background image problem in HTML jasper Report


I am using ireport for the designing,the problem is when i run in pdf the background image viewed properly no problem in it ,But when i run in html the background image is get hide,i also find the reason why the image hide in html,the reason is if it is anything placed over the back round image the back round image get hide,when we placed the out of the image ,image viewed properly,i think we cannot use the back ground image in html,if run with only with baclk ground it works,again i tell the issue is overlapping of any object with back ground,i am not able to fix the problem.most of the people have same error when search in the net
Reply