Sign in to follow this  
Guest Basundhara Ghosal

Sve all charts as images on page load using asp.net

Recommended Posts

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

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

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
Guest Basundhara Ghosal

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

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