Rahul Kumar

Error saving chart as jpg - client side

Recommended Posts

Hi there,

 

 

 

I'm having issues trying to save my chart as jpg on the client side..

 

 

 

When I select the epxort to jpg option, it shows the progress bar to 100%, but the button stays inactive and says "waiting".

 

 

 

I've changed my global security settings and I'm running on localhost with IIS :-(

 

 

 

I've tried in IE 8 and Google chrome, but no luck.

 

 

 

Please help.

 

 

 

PS: Very, very impressive software. I'm evaluating, but will definately be buying. Thx

Share this post


Link to post
Share on other sites
Guest Basundhara Ghosal

Hi,

Could you please check whether the root path for the FusionCharts.js file is corectly mentioned?

Also, could you please check whether you have enabled 'RegisterWithJS' attribute?

Share this post


Link to post
Share on other sites

Hi there,

 

 

 

Thanks for the reply.

 

 

 

My folder structure is as follow:

 

 

 

Root

 

-fusioncharts

 

-JSClass

 

-FusionCharts.js

 

-FusionChartsExportComponent.js

 

-Customer

 

-includes

 

-FusionCharts.asp

 

-reports

 

-Count_Area.asp (page showing chart)

 

 

 

Count_Area.asp includes the following code to include necessary classes and pages:

 

 

 

 

...

 

 

 

...

 

 

 

 

 

 

 

 

 

 

 

I build the chart with the following line:

 

 

 

Call renderChart("../../fusionCharts/charts/" & ChartType, "FusionCharts_1", strXML, "FactorySum", 600, 300, "0", "1")

 

 

 

I looked around for an example on how to register the RegisterWithJs component, but I couldn't find exact example under ASP. I assumed the last two parameters would be the same as for normal chart building. Therefore I assume the final "1" in my command line activates RegisterWithJs.

 

 

 

Thanks for your help...

Share this post


Link to post
Share on other sites
Guest Basundhara Ghosal

Hi,

Could you please let us know whether you are using Flash Player 10 for the same?

Awaiting your reply.

Share this post


Link to post
Share on other sites

Yes I'm using FP 10.0.

 

 

 

I've now updated my included fusioncharts.js file to state:

 

 

 

//Whether to registed with JavaScript

 

registerWithJS = registerWithJS ? registerWithJS : 1;

 

this.addVariable('registerWithJS', registerWithJS);

 

 

 

Not sure if this is necesary.......

 

 

 

I also left out the double quotes on my call renderchart

 

 

 

Call renderChart("../../fusionCharts/charts/" & ChartType, "FusionCharts_1", strXML, "FactorySum", 600, 300, 0, 1)

 

 

 

Should I have double quotes or not?

 

 

 

Thanks for your quick reply. :)

Share this post


Link to post
Share on other sites

Hi Sipes,

You would need to use renderChart in the following way:

Call renderChart("../../fusionCharts/charts/" & ChartType, "FusionCharts_1", strXML, "FactorySum", 600, 300,false, true)

Hope this helps.

Share this post


Link to post
Share on other sites

That worked for me. Thank you very much Rahul.

 

 

 

Now I need to know how to get the evaluation tag removed from the chart without paying for the software.

 

 

 

 

 

Just kidding :):)

 

 

 

Thanks for your quick help.

Share this post


Link to post
Share on other sites

Hi,

You are welcome. :)

Glad that your issue is resolved.

Now I need to know how to get the evaluation tag removed from the chart without paying for the software.

I am afraid, this is not possible. :)

The water-mark can only be removed if you have the license for FusionCharts.

Happy FusionCharting! :)

Share this post


Link to post
Share on other sites

Hi,

I have the same problem on export chart with client-side using asp classic.

My code is:

Call renderChart("../../FusionCharts/Pie3D.swf", "", strXML, "FactorySum",  988, 550, false, true) 

and the div for exporting:

 var myExportComponent = new FusionChartsExportObject("fcExporter1", "../../FusionCharts/FCExporter.swf")

  myExportComponent.Render("fcexpDiv");

the path of the file are the same of the previus post and the i put the registerjs in fusionchart.js file like:

registerWithJS = registerWithJS ? registerWithJS : 1;

I see the export div in back of the graph in waiting status but if i select the export jpg option the progress bar is not displaied.

Thanks

Share this post


Link to post
Share on other sites
Guest Basundhara Ghosal

Hi,

Welcome to FusionCharts forum. :)

Could you please confirm whether the root path for the FusionCharts.js file is been mentioned correctly?

Share this post


Link to post
Share on other sites

Hi Basundhara Ghosal,

my path are:

fusioncodeASPanalisi for the file who generate the chart

fusioncodeFusionCharts for swf chart file, FusionChartsExportComponent.js, FusionCharts.js

Thanks

 

andrea

Share this post


Link to post
Share on other sites
Guest Basundhara Ghosal

Hi ASndrea,

Could you please let us know the version of the Flash Player and the swf file that you are using?

Awaiting your reply.

Share this post


Link to post
Share on other sites

Dear Basundhara Ghosal,

in my computer I use flash player 10.0.32.18

and fusionchart developer:

FusionCharts v3.1

Release: 24th February 2009

Best regard

Andrea

 

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