Sign in to follow this  
marala81

saveAsImage() error

Recommended Posts

hi ,

 

i am getting saveAsImage() error when i am saving chart using excel link. i am using asp.net with C#.

 

 

 

even i am using Version: 3.0.6 (:). my code is as follows

 

 

 

DataTable dt = dset.Tables[0];

 

int[,] arrClient = new int[2, 2];

 

// To decide wether to display two clients or one client in the chart

 

StringBuilder prepairedXml = null;

 

 

 

prepairedXml = prepareXMLFortwoClients(dset); // To display two clients

 

 

 

string outPut = "";

 

 

 

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

 

 

 

//Clear panel which will contain the chart

 

pnlPanel.Controls.Clear();

 

 

 

//Add Litaral control to Panel which adds the chart from outPut string

 

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

 

 

 

 

 

if i use following code chart is not displaying it is displaying just "Chart"

 

 

 

 

 

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

 

 

 

//Clear panel which will contain the chart

 

pnlPanel.Controls.Clear();

 

 

 

//Add Litaral control to Panel which adds the chart from outPut string

 

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

 

 

 

 

 

when i use renderchart method instead renderchartHTML i am getting "Chat".

 

 

 

can any body tell me why i am getting such error while saving chart. but one thing when i am trying "saveimage" option with context menu on chart it is getting downloaded. please tell me the reason and suggestion.

 

 

 

thanks

 

marala

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