Sign in to follow this  
Guest Basundhara Ghosal

Save and JPEG and download immediately after - client side

Recommended Posts

Hi,

I have managed to get the 'Save as JPEG/PNG' working which activates the 'Save' export component button. I can click this and download file as expected. I've looked through the samples and cannot find a way of combining these two i.e. once rendering complete, automatically pop up the Save As dialog box for the client to save the image locally

Is this possible and if so do you kindly have a code sample that would assist ?

Tks

Share this post


Link to post
Share on other sites
Guest Basundhara Ghosal

Hi,

Welcome to FusionCharts forum. :)

Please try specifying the export functionality in FC_Render method for the same.

Hope this helps.

Share this post


Link to post
Share on other sites

Hi,

I've tested and as far as I can see FC_Rendered is fired when the graph is drawn (rendered) at load time. I need the export to only fire once I manually right click on graph and select "Save as JPEG" .. So once Capturing Data is 100% it auto pops the Save To dialog box.

Tks

Share this post


Link to post
Share on other sites

Ok little progress ...found I can use  FC_ExportReady function to determine capture is complete ... now trying to figure out how to force the Save As dialog to pop immediately from this function to save the image ...

Share this post


Link to post
Share on other sites
Guest Basundhara Ghosal

Hi,

Please try using the export functionality in FC_Render method.

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