Krishna_Solanki Report post Posted October 26, 2009 Hi, We can save the chart as an image by right clicking or by enabling the export options. But i want to save all the charts without clicking. I want to save all the charts as images in a folder at the time chart loads( Chart loading completed). Please send me a sample code for ASP.net. I am waiting for the response from last 2 weeks. Previously i got the code using PHP, but i need code for ASP.net. This is a very urgent requirement. Thanks, Share this post Link to post Share on other sites
Ayan Pal Report post Posted October 26, 2009 hi Krishna_Solanki please add this javascript function in your page and make sure that registerWithJS is enabled in your chart's xml function FC_Rendered(DomID) { //document.getElementById("bclk").disabled=false; var chartObject = getChartFromId(DomID); chartObject.exportChart(); } Share this post Link to post Share on other sites
Krishna_Solanki Report post Posted October 26, 2009 By using this we can save the chart on right click. I need to save all the chart in background as page load completes without clicking. Thanks, Share this post Link to post Share on other sites
Ayan Pal Report post Posted October 26, 2009 hi Krishna_Solanki if your chart's registerWithJS flag is on then the chart will call the function FC_Rendered automaticaly when it complete it's rendering in browser the code within this function will then export the chart automaticaly.... as you can export chart by right clicking now so you don't need to to do any thing else... just add this function in your page... to make sure that your registerWithJS in on write a alert within this function which will make you sure that the chart is calling FC_Rendered() after completing it's rendering... Share this post Link to post Share on other sites
Krishna_Solanki Report post Posted October 27, 2009 Hi, Thanks , It's working now. Only one more question, Can we save the charts on a button click? Thanks, Share this post Link to post Share on other sites
Guest Basundhara Ghosal Report post Posted October 27, 2009 Hi, You are always welcome. Could you please try the following steps:- 1)Create a custom function containing the content of FC_Rendered function. 2)Call the function on botton-click(on-click event). Hope this helps. Share this post Link to post Share on other sites