Sign in to follow this  
Bhushan

Code for Server side run batch file

Recommended Posts

Hi,

 

my page have 20 fusion charts & i want to download all chart.

what is the best way to download all charts at a time ?

I saw batch file code to download all charts, but i m not able to call/execute the same from .cs file

 

can anyone give me snippet of code which will download all charts using batch file ?

Share this post


Link to post
Share on other sites
Guest Sashibhusan

Hi,

 

Let me clarify myself once that the Batch export feature is only supported in Flash charts and for client-side downloading of the charts image.

 

So, as you have seen in the documentation (link: http://docs.fusioncharts.com/charts/contents/exporting-image/batch-exporting/ECBatchCallback.html ) you can initiate the export process by calling "BeginExport()" JavaScript function of FusionCharts library.

 

But, it is not possible to export the batch file of all charts by calling from code behind.

 

However, as an alternative you can use "PhantomJS" library to execute the command for generating the image of the entire webpage (contains all the charts in one single file) and save it to your server using code behind C# code.

 

For more information on this, please visit the link: http://blog.fusioncharts.com/2013/03/how-to-save-charts-as-images-at-server-side/

 

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