Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
Weird behaviour
Shafeeque
We have successfully integrated Birt Report Viewer with our application, which is using Struts2 and deployed it in OC4j. From the Action class we were creating the report url as follows.
"/frameset?__report=report/reportName.rptdesign"
along with it, we will append other parameters as well... and then will forwarded to this RELATIVE url and it was initially working fine and reports came with all images in place.
Later we forced to change the relative path to absolute path, which will constructed as follows
String hostNameAndPort = (request.getHeader("host") != null) ?
request.getHeader("host") :
request.getServerName()+":"+request.getServerPort();
urlStr = new StringBuffer(request.getScheme()).append("://").append(hostNameAndPort).append(request.getContextPath()).append("/frameset?__report=report/").append("reportName.rptdesign");
Now suddenly, reports stopped displaying images... All reports are generating without images, and it is weired because, when we export the report to pdf or word, the images are coming back !!
So the images are missing only in the BirtViewer...
We are using all embedded images....
Birt 2.3.1
OC4J 10.1.3.1
Please reply..
Find more posts tagged with
Comments
mwilliams
Hi Shafeeque,
Where are you placing your images?
Shafeeque
Hi,
I have placed all the images in the same folder as that of report.
But as all the images are embedded images, is the folder important? Also the charts also not displaying, so even if i change the static image folder how will i change the chart folder?
mwilliams
Shafeeque,
I don't think the folder should matter once you've embedded the image, like you said. I have not seen this problem before, though I have never created a URL in the way you are. I don't see why that would be the issue, but who knows. Do you have any issues with this report with the web viewer from the designer?
Shafeeque
In the designer, it is perfect. Also from the web viewer, without image, if we export to pdf images are coming... so some minor issues, but dont know exactly where.