Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » problem generating reports with charts & images
problem generating reports with charts & images [message #58264] Thu, 14 July 2005 11:54 Go to next message
Eclipse UserFriend
Originally posted by: er.vikas.rediffmail.com

Hi

I am facing a problem while generating reports that contains Chart &
images using the BIRT report engine.I am creating the report
templates with the eclipse BIRT plugin.These templates i am giving as
an input to BIRT engine which is a part of my web application.
This successfully
generate(HTML format) the report but when i open the report,the
images & charts are not displayed.


In the BIRT site they r saying that we have to set the image handler
i,e CompleteHTMLImageHandler or ServerHTMLImageHandler.
I have used both the options but of no use.

Can anyone help me in setting the configuration for the BIRT to
support images & charts.
Thanks in advance
Re: problem generating reports with charts & images [message #58428 is a reply to message #58264] Thu, 14 July 2005 18:29 Go to previous message
Jun Zhai is currently offline Jun ZhaiFriend
Messages: 74
Registered: July 2009
Member
Vikas,

You have to set the image directory and base image URL right like this
below:

HTMLRenderContext renderContext = new HTMLRenderContext( );
renderContext.setImageDirectory( EngineAccessor.ImageDirectory );
renderContext.setBaseImageURL( request.getContextPath( ) +
EngineAccessor.ImageBaseUrl );

The image base url will be used to construct the URL of your embedded
image/chart in the report. The image directory is the physical location
engine uses to store generated image/chart. You have to make sure the
image can be loaded by the url constructed from that base image url.

For example in Birt viewer, we define image dir as "/report/images", base
image url to be "/report/images" too. Also make sure the "/report/images"
is available in your web app's doc root. This is a very simple and quick
solution and you can develop more advanced one.

Jun Zhai
Previous Topic:Migrating our reports to BIRT
Next Topic:BiRT Report Engine Queuing
Goto Forum:
  


Current Time: Thu Jun 27 21:21:22 GMT 2024

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

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

Back to the top