Sign in to follow this  
daniusklan

saveAsImage function

Recommended Posts

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

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

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

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this