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)
The URL of a generated chart.
llazzeri
I am integrating in a web application a report containing a chart.
Through the methods setImageHandler(), setImageDirectory() and setBaseImageURL() I set the right options and I can see, in the generated HTML page, the chart.
The chart is a jpeg file in my image directory, included in the generated HTML page via an <img> tag with an appropriate url.
Now my question: Is there any way to get this url programatically, so that I can reuse the chart somewhere else?
Thank you for your help and best regards.
Livio
Find more posts tagged with
Comments
JasonW
One option may be to write your own image handler and name the file whatever you want and either store the location pointer somewhere or use a naming convention that the other application is aware of.
Jason
llazzeri
<blockquote class='ipsBlockquote' data-author="'JasonW'" data-cid="85587" data-time="1321918762" data-date="21 November 2011 - 04:39 PM"><p>
One option may be to write your own image handler and name the file whatever you want and either store the location pointer somewhere or use a naming convention that the other application is aware of.<br />
<br />
Jason<br /></p></blockquote>
<br />
Jason,<br />
thank you for your reply. I followed your suggestion and solved the problem by writing my own image handler.<br />
But let me ask another question.<br />
Suppose I need to create just a chart to insert in a HTML page and that I would like to create it via a report (and not via the Chart Engine API), so that I can use data sources, data sets, etc.<br />
To write an image handler is still the best solution or you suggest something else?<br />
<br />
Thank you for your help.<br />
Best regards,<br />
Livio
JasonW
That is one solution. You could also look at writting an emitter but that would be a bit more work. Another option is to export the report to pdf and convert the pdf to an image. I am not certain any of the ways is any better than the other, but the image handler is very simple.
Jason