Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » I have some problem in showng image in html correctly
I have some problem in showng image in html correctly [message #100542] Tue, 20 December 2005 04:03 Go to next message
Eclipse UserFriend
Originally posted by: kendung.gmail.com

When i use birt engine API to generate HTML format from birt report , the
image in report can not be showed in HTML page.
Any idea?
Re: I have some problem in showng image in html correctly [message #100641 is a reply to message #100542] Tue, 20 December 2005 06:15 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: kendung.gmail.com

But it can generate PDF format from birt report.The critical code is as
follows:(Sample application in the website namede RunReport.java)


HTMLEmitterConfig hc = new HTMLEmitterConfig( );
HTMLCompleteImageHandler imageHandler = new HTMLCompleteImageHandler( );
hc.setImageHandler( imageHandler );
config.setEmitterConfiguration( HTMLRenderOption.OUTPUT_FORMAT_HTML, hc );



help.Thanks
Re: I have some problem in showng image in html correctly [message #100684 is a reply to message #100641] Tue, 20 December 2005 06:40 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Ken,

Try adding
HTMLRenderContext rc = new HTMLRenderContext();
rc.setImageDirectory("image");
HashMap contextMap = new HashMap();
contextMap.put( HTMLRenderContext.CONTEXT_NAME, rc );
task.setContext( contextMap );

This will create an image directory in the output location and the image
src will reference this directory.

HTH

Jason Weathersby
BIRT PMC
Re: I have some problem in showng image in html correctly [message #100694 is a reply to message #100684] Tue, 20 December 2005 07:03 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: kendung.gmail.com

Thanks.You solved my problem.
Re: I have some problem in showng image in html correctly [message #102753 is a reply to message #100684] Wed, 28 December 2005 12:50 Go to previous messageGo to next message
jagdish is currently offline jagdishFriend
Messages: 45
Registered: July 2009
Member
I am also facing same problem ,but getting error at
HTMLRenderContext.CONTEXT_NAME
what is this

HTMLRenderContext rc = new HTMLRenderContext();
rc.setImageDirectory("image");
HashMap contextMap = new HashMap();
contextMap.put( HTMLRenderContext.CONTEXT_NAME, rc );
task.setContext( contextMap );
Re: I have some problem in showng image in html correctly [message #103695 is a reply to message #102753] Tue, 03 January 2006 19:12 Go to previous message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Jagdish,

This will create a directory the output location that will contain all the
images for the report.

Jason Weathersby
BIRT PMC

"jagdish bhise" <jagbhise@in.ibm.com> wrote in message
news:1f597e4ed0ee2c3599bd0251b0b99432$1@www.eclipse.org...
>I am also facing same problem ,but getting error at
>HTMLRenderContext.CONTEXT_NAME
> what is this
>
> HTMLRenderContext rc = new HTMLRenderContext();
> rc.setImageDirectory("image");
> HashMap contextMap = new HashMap();
> contextMap.put( HTMLRenderContext.CONTEXT_NAME, rc );
> task.setContext( contextMap );
>
>
Previous Topic:array as datasource
Next Topic:Is it possible to insert/remove table columns dynamically in BIRT?
Goto Forum:
  


Current Time: Fri Mar 29 06:00:26 GMT 2024

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

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

Back to the top