Hello there,
I'm developping a webapp like the WebAppExample available on Eclipse's web site and I'm facing an annoying issue with several image links on a report. In fact, I have a report displaying 3 images with links that allow navigation between other reports (32*32 jpegs).
I'm using a RunAndRenderTask to export the report in PDF and there's no problem with these images, they're displaying well and the links are functionnals.
For a HTML display of this report, i'm using two tasks, a RunTask to generate a rptDocument which I extract the TOC and a RenderTask to get the HTML code from this generated rptdocument. With this method, the 3 images are indeed in the HTML but they are'nt displayed.
When I check the code with Firebug, the image is available and displayable but the div (with width:0;) is hidden. My render code is very simple and I don't know what I'm missing or doing wrong.
If anybody have an idea, please help me (yeah it sounds a little depressed but the issue drives me crazy
)
Thank you in advance for any answers you could do.
MattU
I'm developping a webapp like the WebAppExample available on Eclipse's web site and I'm facing an annoying issue with several image links on a report. In fact, I have a report displaying 3 images with links that allow navigation between other reports (32*32 jpegs).
I'm using a RunAndRenderTask to export the report in PDF and there's no problem with these images, they're displaying well and the links are functionnals.
For a HTML display of this report, i'm using two tasks, a RunTask to generate a rptDocument which I extract the TOC and a RenderTask to get the HTML code from this generated rptdocument. With this method, the 3 images are indeed in the HTML but they are'nt displayed.
<td> <div style="width:0;"> <a target="_blank" href="url"> <img id="AUTOGENBOOKMARK_5_52596549-1c76-448a-8337-8ff290e4933d" style=" width: 32px;display: block;" alt="" src="/birt-viewer/getImage.do?__imageId=filee3d9d013d8d4a20e46.png"> </a> </div> </td>
When I check the code with Firebug, the image is available and displayable but the div (with width:0;) is hidden. My render code is very simple and I don't know what I'm missing or doing wrong.
try { //Open document final IReportDocument document = this.birtEngine.openReportDocument(documentPath, null); //Creating the task renderTask = this.birtEngine.createRenderTask(document); //Setting the locale and Timezone renderTask.setLocale(locale); renderTask.setTimeZone(tz); //Creating the HTMLRenderOption HTMLRenderOption renderOption = new HTMLRenderOption(); renderOption.setOutputFormat("html"); renderOption.setEmbeddable(true); renderOption.setImageDirectory(imageDirectory); renderOption.setBaseImageURL(baseImageUrl); renderOption.setImageHandler(new HTMLServerImageHandler()); renderOption.setOutputStream(outputStream); //Setting the renderOption renderTask.setRenderOption(renderOption); //Execute the task renderTask.render(); } catch (Exception e) { //throw Exception }
If anybody have an idea, please help me (yeah it sounds a little depressed but the issue drives me crazy

Thank you in advance for any answers you could do.
MattU