daniusklan Report post Posted September 2, 2008 I trying to run the simple example of the saveAsImage function shown in the documentation.I have the latest version of fusionChart, 3.0.6, but i have not luck yet. Also i modify the Chart.as removing the registerWithJS condition when the saveAsImage function is register on the externalInterface but still dosnt work!!!. is not a function is what i get when i click on the save image button. Share this post Link to post Share on other sites
daniusklan Report post Posted September 4, 2008 Its seems that if rendering is not via js you cannot call any method expose on the flash externalinterface, i am right??? Share this post Link to post Share on other sites
Rahul Kumar Report post Posted September 4, 2008 Hi, You can call saveAsImage (externalInterface) of charts even if it is not rendered using FusionCharts.js (JavaScript). Could you please check your code, It should be like the following: <script language="javascript"> function getImage() { var chart = getChartFromId("chart1Id"); chart.saveAsImage(); } </script> Share this post Link to post Share on other sites
Miodrag Report post Posted September 5, 2008 Yes, and I tried this form for saveAsImage, and I got errors: 1) For SaveAsImage on right click on chart, I got message: XML Parsing Error: not well-formed Location: file:///C:/.../FusionChartsSave.aspx Line Number 1, Column 2:<%@ Page Inherits="FusionChartsSave" Src="FusionChartsSave.cs" Debug="true" validateRequest="false" %> -^ 2) For click the button, I got message like: Not found/ Undefined saveAsImage() function. Does it mean I work with older version than 3.0.5? This functionality is only for charts, or not ??? What's with gadgets/widgets, for example ??? Regards, Miodrag Share this post Link to post Share on other sites
Rahul Kumar Report post Posted September 5, 2008 Hi, 1. You could not call FusionChartsSave.aspx or any other ASPX locally, as it requires server(IIS) to parse the ASPX to HTML. 2. Could you please attach your code in the post? So that we can debug it easily. Share this post Link to post Share on other sites
Miodrag Report post Posted September 11, 2008 Hi, Thanks for that. I think first thing will solve other. Thanks. Share this post Link to post Share on other sites