Sign in to follow this  
NoBullMan

Initiate Export Through Link

Recommended Posts

Hi,

how can I initiate the exporting of a chart to image or PDF through anything but context menu (e.g. through link button, button, drop down list selection, etc.)?

 

Thanks.

Share this post


Link to post
Share on other sites
Guest Sumedh

Hi,

how can I initiate the exporting of a chart to image or PDF through anything but context menu (e.g. through link button, button, drop down list selection, etc.)?

 

Thanks.

 

Hi,

 

If your willing to export chart via client side process refer the following links:

 

Please refer this post: http://forum.fusionc...h__1#entry43885

 

For more information about client-side export refer this: http://docs.fusionch...ientSimple.html

Share this post


Link to post
Share on other sites

Hi,

 

If your willing to export chart via client side process refer the following links:

 

Please refer this post: http://forum.fusionc...h__1#entry43885

 

For more information about client-side export refer this: http://docs.fusionch...ientSimple.html

 

 

I create the XML in code behind dynamically and use FusionCharts.RenderChartHTML to render the chart. I need to be able to do this on server side. Is it possible?

Share this post


Link to post
Share on other sites
Guest Sumedh

I create the XML in code behind dynamically and use FusionCharts.RenderChartHTML to render the chart. I need to be able to do this on server side. Is it possible?

 

When exporting the charts as images/PDFs using server-side Export Handlers, there are two actions that you can choose from:

1. Download to end user - Return the generated image/PDF back to the client (browser) for downloading

2. Save on server disk - Save the image on server-disk and return the URL of the same to callback JavaScript functions

 

For more detail on 'Exporting Charts as PDF or Images > Server-side export > Returning the exported output as download', please refer to the link below,

http://docs.fusionch...erDownload.html

 

For more detail on 'Exporting Charts as PDF or Images > Server-side export > Saving exported output on server disk', please refer to the link below,

http://docs.fusionch...ServerSave.html

 

Find attached illustration for your reference.

Export_.NET.zip

Share this post


Link to post
Share on other sites

When exporting the charts as images/PDFs using server-side Export Handlers, there are two actions that you can choose from:

1. Download to end user - Return the generated image/PDF back to the client (browser) for downloading

2. Save on server disk - Save the image on server-disk and return the URL of the same to callback JavaScript functions

 

For more detail on 'Exporting Charts as PDF or Images > Server-side export > Returning the exported output as download', please refer to the link below,

http://docs.fusionch...erDownload.html

 

For more detail on 'Exporting Charts as PDF or Images > Server-side export > Saving exported output on server disk', please refer to the link below,

http://docs.fusionch...ServerSave.html

 

Find attached illustration for your reference.

 

Thanks for the reply.

 

I have already got the exporting to work using "Download" method. But it is initiated through context menu. As you are familiar witht users, it might not dawn on them to righ click on the chart to get the context menu and initiate a download. I wanted to add a link button with some text like "click here to download chart" and was wondering how I can initiate the downloading in the OnClick event of the link button.

Share this post


Link to post
Share on other sites
Guest Sumedh

Thanks for the reply.

 

I have already got the exporting to work using "Download" method. But it is initiated through context menu. As you are familiar witht users, it might not dawn on them to righ click on the chart to get the context menu and initiate a download. I wanted to add a link button with some text like "click here to download chart" and was wondering how I can initiate the downloading in the OnClick event of the link button.

 

Hi,

 

You would need to call the export function in the OnClick element of anchor tag.

 

Ref. Code:

<a href="#" OnClick="ExportMyChart();" title="Download Chart">click here to download chart</a>

 

Please find attached illustration which is exporting the chart at server-side.

 

Also, refer this post for more information: http://forum.fusionc...h__1#entry45209

Modified Export_.NET.zip

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