|
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 |
Eclipse User |
|
|
|
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 |
|
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 #103695 is a reply to message #102753] |
Tue, 03 January 2006 19:12 |
|
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 );
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.02586 seconds