Sign in to follow this  
wonderway

FCExporter Sometimes Give An Error

Recommended Posts

Guest Sashibhusan

Hi,

 

Welcome to FusionCharts Forum.

 

Could you please provide some more information on your issue?

 

a. The server-side technology used

 

b. Whether you are using trying to export Flash or JavaScript charts

 

c. The version of FusionCharts is being used at your end

 

d. Relevant code snippet of "how you are exporting the chart image/PDF to server"

 

Awaiting your valuable inputs.

Share this post


Link to post
Share on other sites

Hi,

 

Welcome to FusionCharts Forum.

 

Could you please provide some more information on your issue?

 

a. The server-side technology used

 

b. Whether you are using trying to export Flash or JavaScript charts

 

c. The version of FusionCharts is being used at your end

 

d. Relevant code snippet of "how you are exporting the chart image/PDF to server"

 

Awaiting your valuable inputs.

 

 

a. Well, I'm doing Batch Export Chart, image saving in server disk. When ChartId1 is done exporting, the Chart is changing with ChartId2 in the same div, and if ChartId2 is finish rendering, ChartId2 is start exporting.

 

b. I'm trying to export Flash chart

 

c. i'm using FusionCharts XT (v3.3.1 - Service Release 1)

 

d. Sample Code:

startExport("ChartId1");

function startExport(param){
	var chart = FusionCharts.getObjectReference(param);
    if (chart.hasRendered()==true){
        chart.exportChart();
    }else{
        alert("Please wait for the chart to finish rendering");
    }
}

function FC_Exported ( statusObj )
{
	var area = Ext.getCmp('AreaTypeSlide').rawValue;
	var time = Ext.getCmp('TimeTypeSlide').rawValue;
	console.log(statusObj);
    if (statusObj.statusCode == "1" )
    {
    	if(statusObj.DOMId == "ChartId1") {
    		var SMSPPT = new FusionCharts("../Ext-4/Charts/MSCombiDY2D.swf", 'ChartId2', "785", "538", "0", "1");
    		SMSPPT.setJSONUrl('./Services/SMSTrend/'+area+'/'+time+'/PPT'+'?zoom=0');
    		SMSPPT.render("SlideDiv");
    		SMSPPT.addEventListener("Rendered", function () {
    			 FusionCharts("ChartId2").exportChart(); 
    		});
    		chartsImg = statusObj.fileName.substring(22);
    	} else {
    		chartsImg = chartsImg + "|" + statusObj.fileName.substring(22);
    		window.open("./Services/trafficRptService/"+chartsImg);
    	}
    	console.log(chartsImg);
    }
    else
    {
        alert("Problem");
    }
}

hope you understand, and i'm waiting for your valuable answer

Share this post


Link to post
Share on other sites

a. Well, I'm doing Batch Export Chart, image saving in server disk. When ChartId1 is done exporting, the Chart is changing with ChartId2 in the same div, and if ChartId2 is finish rendering, ChartId2 is start exporting.

 

b. I'm trying to export Flash chart

 

c. i'm using FusionCharts XT (v3.3.1 - Service Release 1)

 

d. Sample Code:

startExport("ChartId1");

function startExport(param){
	var chart = FusionCharts.getObjectReference(param);
    if (chart.hasRendered()==true){
        chart.exportChart();
    }else{
        alert("Please wait for the chart to finish rendering");
    }
}

function FC_Exported ( statusObj )
{
	var area = Ext.getCmp('AreaTypeSlide').rawValue;
	var time = Ext.getCmp('TimeTypeSlide').rawValue;
	console.log(statusObj);
    if (statusObj.statusCode == "1" )
    {
    	if(statusObj.DOMId == "ChartId1") {
    		var SMSPPT = new FusionCharts("../Ext-4/Charts/MSCombiDY2D.swf", 'ChartId2', "785", "538", "0", "1");
    		SMSPPT.setJSONUrl('./Services/SMSTrend/'+area+'/'+time+'/PPT'+'?zoom=0');
    		SMSPPT.render("SlideDiv");
    		SMSPPT.addEventListener("Rendered", function () {
    			 FusionCharts("ChartId2").exportChart(); 
    		});
    		chartsImg = statusObj.fileName.substring(22);
    	} else {
    		chartsImg = chartsImg + "|" + statusObj.fileName.substring(22);
    		window.open("./Services/trafficRptService/"+chartsImg);
    	}
    	console.log(chartsImg);
    }
    else
    {
        alert("Problem");
    }
}

hope you understand, and i'm waiting for your valuable answer

Hi,

 

Could you please let us know the value you are passing to the "exportHandler" attribute in the JSON data?

 

Awaiting your reply.

Share this post


Link to post
Share on other sites

Hi,

 

Could you please let us know the value you are passing to the "exportHandler" attribute in the JSON data?

 

Awaiting your reply.

 

here:

 

"exportEnabled" : "1";
"exportAtClient" : "0";
"exportHandler" : "FCExporter";
"exportFileName" : "VoiceTrafficFileName";
"exportFormat" : "JPG";

Share this post


Link to post
Share on other sites
Guest Sashibhusan

Hi,

 

Could you please try once by disposing the chart object instance, just before rendering all the charts ?

 

Ref. JavaScript code to dispose a chart:

FusionCharts("myChartId").dispose();

In case if this is what is not able to resolve your issue, please provide us the relevant scaled down sample (as ZIP file), so that we can test and replicate the issue from our end.

 

Awaiting your valuable response.

Edited by Sashibhusan

Share this post


Link to post
Share on other sites

Hi,

 

Could you please try once by disposing the chart object instance, just before rendering all the charts ?

 

Ref. JavaScript code to dispose a chart:

FusionCharts("myChartId").dispose();

In case if this is what is not able to resolve your issue, please provide us the relevant scaled down sample (as ZIP file), so that we can test and replicate the issue from our end.

 

Awaiting your valuable response.

 

i found the solution --> "resizing Max Post Size in Glassfish Server" :D

 

thanks for all supreme being who trying to help me  :lol:

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