Sign in to follow this  
marala81

saving Multiple Images with saveAsImage()

Recommended Posts

hi,

 

i am displaying multiple Charts (2 Charts) in a web page using asp.net with c#. now i want to Export them into Excel file. if i am going to one chart to excel it is working fine. but when i am going export morethan one in mycase 2 charts at a time even it only exporting one chart. but i want to export both charts into excel. could you please tell me how could i export both with fusionchartsave.aspx page.

 

my code is as follows for saveAsImage().

 

 

 

function saveChart()

 

{

 

 

 

var chartToPrint = getChartFromId("divFirstChart1");

 

chartToPrint.saveAsImage();

 

 

 

var chartToPrint1 = getChartFromId("divFirstChart2");

 

chartToPrint1.saveAsImage();

 

}

 

 

 

it is redirecting twice to fusionchartsave.aspx page but chart is exporting only once.

 

 

 

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