saratkrish Report post Posted June 12, 2008 Dear All, I am new to fusion charts, I have a jsp page which contain 5 fusion charts, I want to save this page as pdf, inorder to do that I want to save these fusion charts as images. I read the document on saving fusion chart as image, and I specified imageSave="1" imageSaveURL="FusionChartsSave.jsp" in the data xml file, and called saveAsImage() from java script , now I am able to save one fusion chart as image, but I have 4 more fusion charts to save. Once I call the saveAsImage() function of fusion chart from java script, the control goes to the jsp page which is specified as imageSaveURL attribute. How to tackle this issue. Thanks in advance Share this post Link to post Share on other sites
FusionCharts Support Report post Posted June 12, 2008 Hi, As of now, what you can do is put each chart in an IFRAME and call the image saving code once each charts finish rendering. This way you can save each chart as image separately. Share this post Link to post Share on other sites
saratkrish Report post Posted June 12, 2008 Dear Sudipto, Thank you for your quick reply. This is how I am embedding fusion charts in my jsp code. <% String chartCode= createChart("../FusionCharts/Charts/Pie3D.swf",spamDataUrl, "", "piechart", 500, 200, false, true); %> <%=chartCode%> Please tell me how I can do it with IFrames . Thanks a lot. Share this post Link to post Share on other sites
FusionCharts Support Report post Posted June 13, 2008 Hi, Put each charts's code in separate jsp file and load each of them in an IFRAME (placed inside the main page). e.g.<iframe src ="Chart1.jps" width="100%"></iframe> For more attributes on IFRAME you might refer to : http://www.w3schools.com/TAGS/tag_iframe.asp Share this post Link to post Share on other sites
saratkrish Report post Posted June 13, 2008 Dear, It worked for me, thanks a lot, Now I am facing another problem, all my fusion charts get saved except AngularGuage , when I call the saveAsImage() function on AngularGuage object, it gives an script error, says saveAsImage is not a function , please help..I am waiting for your reply.. Thanks, Share this post Link to post Share on other sites
FusionCharts Support Report post Posted June 13, 2008 Hi, Could you please check whether you are setting registerWithJS option while rendering the chart? Please also check the minor version of the gauge. SaveAsImage() JS API is supported since v3.0.2 - March 31st, 2008. Share this post Link to post Share on other sites
saratkrish Report post Posted June 13, 2008 Dear, I checked version of AngularGuage, its 3.0.1 , Now I am trying to download the trial vesion 3.0.2, if you have the link please provide me. Thanks for your support, Share this post Link to post Share on other sites
FusionCharts Support Report post Posted June 13, 2008 Hi, Could you please download from http://www.fusioncharts.com/widgets/Download.asp? Share this post Link to post Share on other sites