srividya_sharma

Export charts to image/PDF

Recommended Posts

Trying to export chart using the server side exporting .But i am taken to blank page instead of pdf being downloaded .I am using the latest version of fusionchart.Let me know where i am going wrong

Share this post


Link to post
Share on other sites

Hi

Please verify the following for FusionCharts JSP export handler:

1. exportEnabled ='1' and exportAtClient='0'

2. In xml, exportHandler attribute has the correct relative path/absolute http path to the FCExporter.jsp file.

3. In WEB-INF/classes/fusioncharts_export.properties the values for the following are correct:

  a. EXPORTHANDLER=FCExporter_

Do not modify this value

  b. RESOURCEPATH=Resources/

Relative path to the folder containing FCExporter_IMG.jsp and FCExporter_PDF.jsp files.

c. SAVEPATH=./images/

  Path on the server where images/pdf files need to be saved. This folder should have write permissions.

Next, Tips N Tricks for using the JSP server side export handler:

1. First, try with exportAction='download' . If it works, then you can try the 'save' mode.

2. Turn on the debugMode of the chart. The messages shown there are useful.

3. If possible, use the javascript callback function FC_Exported for more information.

4. Either the .class files or the jar file - only ONE of them has to be present in the classpath.

Hope this helps! :D

Srividya

Share this post


Link to post
Share on other sites

Now my issue is it doesn't work in IE .The chart renders out in IE but when trying to export using javascript get Object doesn't support this property or method.It does export when i right click.

Share this post


Link to post
Share on other sites

I want to add one more thing just running your examples files with download file:///C:/FusionCharts/FusionCharts_Site/Code/ExportChartSamples/JavaScriptExport/ServerSideSimple.html in IE 8 returned the same error i am getting.

 

Please let me know what is going on.

Share this post


Link to post
Share on other sites

I fixed this issue in IE by changing code in fusioncharts.js like this.

 

 

 

infosoftglobal.FusionChartsUtil.getChartObject = function(id)

 

{

 

var chartRef=null;

 

if (navigator.appName.indexOf("Microsoft Internet")==-1) {

 

if (document.embeds && document.embeds[id])

 

chartRef = document.embeds[id];

 

else

 

chartRef = window.document[id];

 

}

 

else {

 

chartRef = window.document[id];// This was the original code chartRef = window[id];

 

}

 

if (!chartRef)

 

chartRef = document.getElementById(id);

 

 

 

return chartRef;

 

}

Share this post


Link to post
Share on other sites
Guest Rajroop

Thanks for sharing this on the Forum!

I hope everything is working out for you now.

Happy FusionCharting! :D

Share this post


Link to post
Share on other sites

I'm having the same problem. A blank page. I have read several posts about this issue but no solution is working for me.

 

I have uploaded my tomcat application (I have removed the swf file).

 

Can anybody tell me what I'm doing wrong?

 

I'm using tomcat 6 with JVM 5.

 

Thanks

Share this post


Link to post
Share on other sites

Hi

Please change the following property in the WEB-INF/classes/fusioncharts_export.properties file.

#Path where the export handler files are located

#Please note that the resource path should be relative to

#web application root directory

#By default the path is "/Resources/"

RESOURCEPATH=/ExportHandlers/JSP/Resources/

 That comment in the download package was wrong. Please put the path relative to the web application root.

Hope this helps. Thanks. :D

Srividya

Share this post


Link to post
Share on other sites
Guest Basundhara Ghosal

Hi,

 

We are glad to help you.

Keep smiling and keep FusionCharting. :D

Share this post


Link to post
Share on other sites

Hi Vidhya,

 

 

 

Iam using FCF_Line.swf for populating chart, on x axis i need to show values like 0-30, 30-70, 70-100.....how can i achieve this in my chart.

 

 

 

Can you please help me out on this.

 

 

 

Thanks in advance.

 

 

 

Regards

 

Ganga

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