I am trying your Export Chart related examples provided in Download Package > Code > ExportChartSamples folder. None of them see to finish the final step. What is wrong?

Before trying the examples from our download package, you need to undertake the necessary setup steps as under:

  • When running the server-side examples, make sure that you've copied-pasted the relevant export handlers (server-side) to your server. Next, in each example XML, provide the path to that handler and then try again.
  • When running client-side examples, make sure that you've copied-pasted the examples (along with ../FusionCharts folder) to your server (either localhost or remote). The reason why they would not work on local files ystem is that Adobe Flash Player blocks Flash to JavaScript communication on local file system for security reasons, which FusionCharts uses for client-side exporting. If you need to over-ride that for a specific folder, you'll need to visit http://www.macromedia.com/support/documentation/en/flash player/help/settings_manager04.html and then in that interface add the folder containing our examples to the list of allowed folder.

If it still doesn't work, switch the debug mode of chart to on and it'll be able to guide as to what might be wrong.

 
I have copied the server-side PHP or Ruby on Rails handlers, but they do not seem to generate images at all.
Make sure that you've GD library installed on your server in case of PHP, and RMagick in case of Ruby on Rails.
 
My PHP/Ruby on Rails server-side handlers are unable to generate PDFs
Make sure you've GZip library installed on your server in case of PHP, and zlib in case of Ruby on Rails.
 
I want to export the charts and save them on server without having to render the charts in browser. How can I do this?
This CANNOT be done. FusionCharts necessarily needs to render once in the browser, before any of the export handlers are called. This is because the charts are always generated at client-side. After that, it takes a snapshot to the client-side Export component or server-side Export scripts for generation of image/PDFs.
 
When creating an instance of FusionCharts Export Component, I do not see the UI at all. Instead, it shows me the text that I filled in my container DIV.

Make sure of the following:

  • You've Flash Player 10 installed. FusionCharts Export Component has been coded in Flash CS4 and needs Adobe Flash Player 10 to run.
  • You've included FusionChartsExportObject.js in your page (after FusionCharts.js)
  • The constructor of FusionChartsExportObject correctly specified the path to FCExporter.swf
  • The DIV which you've specified in Render(divId) call actually exists.
  • The JavaScript code that you've written to initialize the Export Component doesn't have any bugs

If nothing works, switch the debugMode of component to true (click here for details), and it'll show what went wrong.

 
When using some download tools (like DAP), I cannot download the image in case of server-side exports.
Yes- this is because they do not resend the POST data. So, you'll have to disable the same to allow download of chart.
 
Instead of saving on server, can I directly email the chart?
Not directly. But since we allow saving on server, you can write your own script to automatically email the saved image. This script can be placed in our server-side script, or externally.
 
Instead of just exporting the charts to PDF, I also want my HTML content to be a part of the PDF. How can I achieve that?
Currently, the only way would be to use a print PDF driver (like say PDF995). Since FusionCharts export component does not have access to anything that is contained in your browser window, it cannot export that as a PDF.
 
The charts in my PDF look a bit larger than my actual charts. Why?
The PDFs rendered by FusionCharts Export Handler is 72 DPI in PDF. The PDF viewer that you are using must have been set to a different Display Resolution (pixel/inch setting). A higher value would show the chart bigger and blurred while a smaller value would reduce the chart size. Please set the Resolution to 72 to see the correct chart size.