Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
Chart comes up as empty image
manojsanjo
Hello all,
I am a newbie to BIRT.
Using the Eclipse editor and BIRT plugin, I am able to insert a chart into the report. When I use the BIRT plugin preview, the chart comes up fine. But when I use ReportEngine to generate the report using Web, the chart does not show up in the report. the chart has a placeholder on the HTML page, and the view source of the HTML page shows that it refers to an image.
Can anyone please guide me. I might need some tutorials on this, but do not know where to get it from.
Thanks in advance.
Manoj.
Find more posts tagged with
Comments
CBR
What filetype do you use for chart? Internet Explorer doesn't support SVG Images. So if IE should display a SVG image it just displays a empty or broken image. Firefox can display SVG images fine.
How do you generate the report using the report engine? Have you developed your own web application? Do you use the BIRT Webviewer sample application?
manojsanjo
Thanks for answering. I have my own web application and not using the BIRT webviewer. The ".rptdesign" file contains a bar chart as SVG format. I have tried changing format to JPG and BMP as well, but no luck. I also tried using both IE as well as Firefox browsers....and still no luck.<br />
<br />
<blockquote class='ipsBlockquote' data-author="'cbrell'" data-cid="81224" data-time="1312735637" data-date="07 August 2011 - 09:47 AM"><p>
What filetype do you use for chart? Internet Explorer doesn't support SVG Images. So if IE should display a SVG image it just displays a empty or broken image. Firefox can display SVG images fine.<br />
<br />
How do you generate the report using the report engine? Have you developed your own web application? Do you use the BIRT Webviewer sample application?<br /></p></blockquote>
manojsanjo
Friends,
I was able to get the solution to the problem. THanks for looking and the suggesttion given. Here is what I have done.
I was using only the ReportEngine within my web application. (Note: That means I did not use the BIRT viewer). In my code, I created a HTMLRenderOption object with a HTMLImageHandler() object. This was the problem especially since I was using only ReportEngine. I switched to use HTMLServerImageHandler() and also set the BaseImageURL. This helped me to see the image of the chart that was created.
http://www.eclipse.org/birt/phoenix/deploy/reportEngineAPI.php
Well, the next step was to present this image onto the file. This is simple and I am assuming most of you know it. But I will still write it. I wrote a servlet to push out the image into a BufferedOutputStream. See example
http://balusc.blogspot.com/2007/04/imageservlet.html
Thanks again.
Manoj.
harsimran
Hi i am facing problem similar to this.
i am using BIRT 2.6.2 and i have created web project but inside my web applications i genrating report by calling BIRT RUntime engine.
i am genrating Reports with Graphs and tabular data.while genrating chart in HTML .png file genrated along with html file as i disbaled .svg.
but to view this html graph i always depenedent on .png images.Why its not embedded the way PDF genrated.