Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » JS chart is not rendered in HTML(BIRT JS chart is not rendered in HTML)
JS chart is not rendered in HTML [message #1396471] Tue, 08 July 2014 10:47 Go to next message
Mayank Keshari is currently offline Mayank KeshariFriend
Messages: 2
Registered: July 2014
Junior Member
Hi,

I am trying to create HTML report outside the viewer using Report engine apis, but somehow not able to generate JS chart into it.

I am passing .rptdesign file as input to a function that generates html file and pass it to a remote requester. The rptdesign file has 2 JS charts and images in the report table, images are coming but charts are not coming in the generated html file.

However Viewer's Export Content > XHTML works fine, and it generates chart as svg image.

I am using iHub3.

Following is the code that i have used for rendering option:

HTMLRenderOption options = new HTMLRenderOption();
options.setOption(IRenderOption.HTML_PAGINATION, Boolean.TRUE);
options.setOutputFileName(outputFileName);
options.setOutputFormat("html");
// Adding images to html rendered report
String imageDir = new File(outputFileName).getName();
int htmlExtensionLength = "html".length();
options.setBaseImageURL(imageDir.substring(0, (imageDir.length() - (htmlExtensionLength + 1))));
options.setImageDirectory(outputFileName.substring(0, (outputFileName.length() - (htmlExtensionLength + 1))));
options.setImageHandler(new HTMLServerImageHandler());
options.setSupportedImageFormats("PNG;JPG;SVG");

I have attached the zip file that is being generated. Pls let me know what else needs to be done. I tried finding code used by actuate's Export Content > XHTML but couldn't find.
Re: JS chart is not rendered in HTML [message #1396664 is a reply to message #1396471] Tue, 08 July 2014 16:14 Go to previous message
Michael Williams is currently offline Michael WilliamsFriend
Messages: 1925
Registered: July 2009
Senior Member

So, you're designing your reports with BIRT Designer Pro and then using the open source engine to run the reports?

Or are you using open source BIRT to create reports and running them on iHub?

Let me konw.


Michael

Developer Evangelist, Silanis
Previous Topic:Report Viewer Toolkit install issues
Next Topic:Master Page menu
Goto Forum:
  


Current Time: Thu Apr 25 09:02:44 GMT 2024

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

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

Back to the top