Sign in to follow this  
inggarcia

Error Exporting Chart

Recommended Posts

Good day,

 

When i want to export a chart to pdf works fine but when export to jpg or png i can download the file but i cant open it. I have enable the gd library in my php and for the gzip the options in my php are:

 

Content-Encoding = gzip

Accept-Encoding = gzip, deflate

 

So i belive that i have everything installed. What could be the problem?

 

Thanks

 

P.D. Sorry for my bad english

Share this post


Link to post
Share on other sites
Guest Sashibhusan

Hi,

 

Could you please enable the Firebug and try exporting the chart image from Firefox browser and provide the Firebug console output?

 

Awaiting your response!

Share this post


Link to post
Share on other sites
Guest Sashibhusan

Hi,

 

With regard to your issue, could you please check the followings?

 

1. Please find the attached sample of exporting chart image using PHP, where the chart image is saving in "exportedImages" folder.

 

You need to edit and provide the correct path in XML (..//charts/columndata.xml) and FCExporter.php (..//ExportHandlers/PHP/FCExporter.php) as per your server settings to run the sample from your side.

 

2. From the attachment it seems it is not the problem with FusionCharts files. So could you please confirm once if you have GD Library installed in your server by using the below code snippet?

 

Code Snippet:

<?php
if (extension_loaded('gd') && function_exists('gd_info')) {
echo "It looks like GD is installed";
}
?>

 

3. If the above not helps, please send us the sample code to test from our end.

 

Awaiting your response!

Export_Chart_image_to_Server_using_PHP.zip

Share this post


Link to post
Share on other sites
Guest Sashibhusan

Hi,

 

The code snippet attached, seems to be fine.

 

So, could you please provide us the live URL or the entire project as ZIP file (including all SWF, JavaScript and PHP files), to better investigate your issue?

 

Awaiting your response!

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