Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » image reference in 3.7 designer/viewer mode
image reference in 3.7 designer/viewer mode [message #723011] Wed, 07 September 2011 12:26 Go to next message
Mike Wulkan is currently offline Mike WulkanFriend
Messages: 147
Registered: July 2009
Senior Member
Hi,

I was using the following script to reference images in my reports. I just put a fresh install of BIRT 3.7 on a new machine but now when I preview the report it cannot find the images. Is there a way to tell what BIRT is using as the BIRT home directory? I'd like to know what is different between my old installation and this one with regards to why this same script no longer works? Unfortunately I no longer have access to my old installation to compare it with (machine died), but it must be environmental as all the BIRT source is identical.

function imagePath(imageName) {
if (reportContext.getHttpServletRequest().getAttribute("attributeBean").isDesigner() ) {
return "/WebContent/report/images/"+imageName
}
else
{
return "/report/images/"+imageName
}
}
Re: image reference in 3.7 designer/viewer mode [message #723039 is a reply to message #723011] Wed, 07 September 2011 13:50 Go to previous message
Mike Wulkan is currently offline Mike WulkanFriend
Messages: 147
Registered: July 2009
Senior Member
Well I got it working but I still don't know the actual reason why there was a difference between the two installations? I changed the script to use a relative path (eg., "images/...") rather than the absolute path (eg., "WebContent/report/images/..."). This is the better approach but I still don't know why the root directory which the absolute path was using was different between installations?
Previous Topic:Get report parameters with genReport.sh or birt viewer
Next Topic:Return parameters with indexed table or record data types
Goto Forum:
  


Current Time: Wed Apr 24 18:06:53 GMT 2024

Powered by FUDForum. Page generated in 0.03179 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top