Sign in to follow this  
marala81

Regarding ChartToPrint.saveAsImage(); error

Recommended Posts

hi,

 

i am getting error at " ChartToPrint.saveAsImage();". iam able to save the chart when "FusionCharts.RenderChart()" is used in page load event. but when i use 'FusionCharts.RenderChartHTML()" i am not able to download chart (i mean saveAsImage() method).

 

 

 

i am using following codes as respect

 

if (IsPostBack)

 

{

 

string output1 = InfoSoftGlobal.FusionCharts.RenderChartHTML("FusionCharts/DragNode.swf", "", prepairedXml.ToString(), "divFirstChart1", "700", "500", false, true);

 

pnlPanel.Controls.Clear();

 

pnlPanel.Controls.Add(new LiteralControl(output1));

 

}

 

else

 

{

 

outPut = InfoSoftGlobal.FusionCharts.RenderChart("FusionCharts/DragNode.swf", "", prepairedXml.ToString(), "divFirstChart1", "700", "500", false, true);

 

pnlPanel.Controls.Clear();

 

pnlPanel.Controls.Add(new LiteralControl(output1));

 

 

 

}

 

 

 

in the above code if condition is not getting saved Image but in the Else condition Chart is getting saved.

 

 

 

can you please tell me why this is happening. "renderChartHTML" will not have any method like "saveAsImage()". can you please tell me what is the problem.

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