prakash chaudhary

Convert Fusioncharts Into Images/pdf

Recommended Posts

Guest Angshu

Hi,

 

Thanks for your post.

 

Could you please elaborate your query a bit more?

 

Awaiting for your response.

Share this post


Link to post
Share on other sites

Generally, my website will be online so that Fusioncharts is visible to client but when he/she want it in PDF format then what i have to do for that ?

where It should be done at server side or client side ?

Hi,

 

Thanks for your post.

 

Could you please elaborate your query a bit more?

 

Awaiting for your response.

Share this post


Link to post
Share on other sites
Guest Angshu

Hi,

 

Thanks for your response.

 

If the client is running the website in local system, then he/she can go for client side exporting.

 

In case, the client wants to export the FusionCharts image to server, then comes the concept of server side exporting.

 

For more details, please visit the section :"Exporting as image/PDF" in FusionCharts Documentation

 

Hope this helps.smile.gif

Share this post


Link to post
Share on other sites

Hiii Angshu, Please tell me one thing that,

I have one button & above it fusion chart is showing & onClick of button save dialog should be open & then i can save the image.

Hope you understood wht am i telling...

Actually, I want that when I click on my button then these fusionchart should be converted into image & attached to my PDF.

Bcoz in PDF i have to show entire plans along with their charts in PDF formats so please help in doing this.

Regards...

Hi,

 

Thanks for your response.

 

If the client is running the website in local system, then he/she can go for client side exporting.

 

In case, the client wants to export the FusionCharts image to server, then comes the concept of server side exporting.

 

For more details, please visit the section :"Exporting as image/PDF" in FusionCharts Documentation

 

Hope this helps.smile.gif

Share this post


Link to post
Share on other sites
Guest Angshu

Hi,

Thanks for your response.

 

I have one button & above it fusion chart is showing & onClick of button save dialog should be open & then i can save the image.

 

To achieve this, please follow the steps below:

 

  • Create an HTML page with a chart in it.
  • Setup the XML of the chart to enable exporting.
  • Create a JavaScript function to initiate exporting of the chart.
  • Insert an HTML button to call the above JavaScript.

For more details, please visit the link: http://www.fusioncha...JavaScript.html

 

Actually, I want that when I click on my button then these fusionchart should be converted into image & attached to my PDF.

 

FusionCharts can not automatically converts images and attaches them with PDF.You would need to export the images in PDF format first, then you can integrate the images with

 

your PDF file.

Hope this helps.smile.gif

 

 

 

Share this post


Link to post
Share on other sites

Hi,

Thanks for your response.

 

Hiiiii....Angshu,

Thanx alot,

I tried that example but onClick of button it is not saving fusioncharts in image format...

<script type="text/javascript">

function ExportMyChart() {

var chartObject = getChartFromId('myChart');

if( chartObject.hasRendered()) chartObject.exportChart();

alert("Inside Body");

}

</script>

The red marked line is not working.

Since I printed message there also to confirm which line is not working...

My chart is rendereing properly...So Hope there will be no issue in rendering charts.

To achieve this, please follow the steps below:

 

 

 

 

  • Create an HTML page with a chart in it.
  • Setup the XML of the chart to enable exporting.
  • Create a JavaScript function to initiate exporting of the chart.
  • Insert an HTML button to call the above JavaScript.

For more details, please visit the link: http://www.fusioncha...JavaScript.html

 

 

FusionCharts can not automatically converts images and attaches them with PDF.You would need to export the images in PDF format first, then you can integrate the images with

 

your PDF file.

Hope this helps.smile.gif

 

 

 

 

 

 

Share this post


Link to post
Share on other sites
Guest Angshu

Hi,

 

Thanks for your response.

 

Please find the sample zip file attached for your reference.

 

Hope this helps.smile.gif

Export.zip

Share this post


Link to post
Share on other sites

I tried your code also but there is no action happenig on click of button...

Right nw I am using browser as Google Chrome but as I hope there is no any matter of browser...

Hi,

 

Thanks for your response.

 

Please find the sample zip file attached for your reference.

 

Hope this helps.smile.gif

Share this post


Link to post
Share on other sites
Guest Angshu

Hi,

 

The code is working fine in google chrome from our end.

 

Please find the screenshot attached for your reference.

 

Please check the following:

 

1. Please make sure you have mentioned the path of FusionCharts.js, FusionChartsExportComponent.js, FCExporter.swf, Column3D.swf correctly in your HTML code.

 

2. Please make sure you have Flash Player 10 installed in your system.

 

3. In case you are running the chart from your local file system, you would need to setup "Flash Player Global security Settings".

 

 

To know more, please visit: http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html

 

 

Awaiting for your response.

post-10517-0-66270200-1309933420_thumb.png

post-10517-0-10978000-1309933438_thumb.png

Share this post


Link to post
Share on other sites

Please tell me one more thing that,

To convert fusioncharts into JPEG image we need flash player 10 installed on PC.

But flash player 10 also required at the time of loading the fusion charts or less that 10 can also works very well...

Hi,

 

The code is working fine in google chrome from our end.

 

Please find the screenshot attached for your reference.

 

Please check the following:

 

1. Please make sure you have mentioned the path of FusionCharts.js, FusionChartsExportComponent.js, FCExporter.swf, Column3D.swf correctly in your HTML code.

 

2. Please make sure you have Flash Player 10 installed in your system.

 

3. In case you are running the chart from your local file system, you would need to setup "Flash Player Global security Settings".

 

 

To know more, please visit: http://www.macromedi..._manager04.html

 

 

Awaiting for your response.

Edited by prakash chaudhary

Share this post


Link to post
Share on other sites

Hiiii Anghsu, please guide me that what i have to do in such condition...

I have my own button & onClick of that button PDF gets generated.

& now I want to put your fusion charts should be there as image on that pdf so what I have to do for that ?

I need to put entire code in that pdf generation code...

or any other your views bcoz i am quite confuse abt the process of saving.

So tell me wht i should i do in such condition ?

Please tell me one more thing that,

To convert fusioncharts into JPEG image we need flash player 10 installed on PC.

But flash player 10 also required at the time of loading the fusion charts or less that 10 can also works very well...

Share this post


Link to post
Share on other sites

Hiiiii Angshu, can u give me some link to generate PDF in javascript without using any s/w in code as reference ?

Hiiii Anghsu, please guide me that what i have to do in such condition...

I have my own button & onClick of that button PDF gets generated.

& now I want to put your fusion charts should be there as image on that pdf so what I have to do for that ?

I need to put entire code in that pdf generation code...

or any other your views bcoz i am quite confuse abt the process of saving.

So tell me wht i should i do in such condition ?

Share this post


Link to post
Share on other sites
Guest Angshu

Hi,

Thanks for your response.

 

FusionCharts can be directly exported to PDF or you can export your charts as image file and integrate them to PDF.

 

For integration to PDF, you would need to use your own code.

 

To export charts, you would need to have Flash Player 10 installed in your system. FusionCharts Export Component has been coded in Flash CS4 and needs Adobe Flash Player 10 to run.

 

Hope this helps.

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