You are viewing documentation for an older version. For current documentation - click here.
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/JSON, 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 ../Charts folder) to your server (either localhost or remote). The reason why they will not work on local files system is that Adobe Flash Player blocks Flash to JavaScript communication on local file system for security reasons, which FusionWidgets XT uses for client-side exporting. If you need to over-ride that for a specific folder, read this.

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 ZLib 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. FusionWidgets XT 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.

However, please note that our developers have created a .NET based server-side Image Saver Assembly that allows exporting charts as images without rendering it in the browser. Please note that this works only using .Net framework of Windows. This is an internal implementation, which is not included and/or associated with the FusionWidgets XT pack. For receiving the same, drop us a mail requesting for this assembly at support[@]fusioncharts.com.

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 FusionChartsExportComponent.js in your page (after FusionCharts.js)
  • The constructor of FusionChartsExportObject correctly specifies 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 will 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 will show the chart bigger and blurred while a smaller value will reduce the chart size. Please set the Resolution to 72 to see the correct chart size.