Hello,
I am rendering an intermediate BIRT report document into an HTML report but the drill down hyperlinks are broken. However, the same BIRT document opened in frameset? works fine.
The generated drill down hyperlink in HTML report is:
http://localhost:8080/documents/run?__report=/C:/apache-tomcat-6.0.18/bin/report/reports/ApplicationRTM_L2.rptdesign
Whereas the drill down hyperlink should be:
http://localhost:8080/run?__report=report/reports/ApplicationRTM_L2.rptdesign
Could anybody please tell me how do I correct drill down hyperlink when I render the report in to an HTML document:
The following code I am using for generating an HTML report:
IRenderTask renderTask = BirtEngine.getReportEngine().createRenderTask(document);
HTMLRenderOption options = new HTMLRenderOption( );
options.setOutputFormat("html");
String imageDir = ****;
options.setBaseImageURL("****"+imageDir+"/");
options.setImageDirectory(imageDir);
options.setSupportedImageFormats( "PNG;GIF;JPG;BMP;SWF");
//options.setSupportedImageFormats( "PNG;GIF;JPG;BMP");
ByteArrayOutputStream osr = new ByteArrayOutputStream();
options.setOutputStream(osr);
options.setImageHandler(new HTMLServerImageHandler());
renderTask.setRenderOption(options);
renderTask.render();
renderTask.close();
Thanks,
SKV