antoine Report post Posted April 29, 2009 Hi, i've an error message when trying to automaticaly export charts into PDF . Code generated with PHP , the export works fine , when i do it manually. script type="text/javascript"> function ExportMyChart() { var chartObject = getChartFromId("flux_en3"); if( chartObject.hasRendered() ) chartObject.exportChart(); } /script> !-- START Script Block for Chart flux_en3 --> div id="flux_en3Div"> Chart. /div> script type="text/javascript" > var chart_flux_en3 = new FusionCharts("/communs/FusionCharts/Charts/StackedColumn2D.swf", "flux_en3", "800", "400", "0", "1", "","noScale","EN"); //Provide entire XML data using dataXML method chart_flux_en3.setDataXML("datas here"); chart_flux_en3.render("flux_en3Div"); /script> !-- END Script Block for Chart flux_en3 --> script> ExportMyChart(); /script> Share this post Link to post Share on other sites
FusionCharts Support Report post Posted April 30, 2009 Hi, Please use this instead: function FC_Rendered(DOMId) { var chartObject = getChartFromId(DOMId); chartObject.exportChart(); } remove: < script> ExportMyChart(); < /script> Share this post Link to post Share on other sites
agreene Report post Posted May 19, 2009 I am having the same issue and tried using the FC_Rendered as suggested, but it isn't firing. I checked and registerWithJS='1' and my adobe flash player settings is set to allow all. The chart is rendering fine and I can print and save using the context menu. I am rendering my chart with direct HTML code, could this be why? Share this post Link to post Share on other sites
agreene Report post Posted May 19, 2009 I found my problem was I wasn't setting the DOMId and the registerWithJS in the values for the flashvars param. It is working now. Share this post Link to post Share on other sites
shamasis Report post Posted May 19, 2009 ... Greetings agreene, Nice to hear that you solved your problem. If you have any query, do not hesitate to post it here. Share this post Link to post Share on other sites
register Report post Posted August 30, 2012 l am having the same issue!!!! Share this post Link to post Share on other sites
Guest Sumedh Report post Posted August 30, 2012 l am having the same issue!!!! Hey, Can you please provide some information on following points? >What FusionCharts version are you using? > What chart type used? >Also can you paste your sample code here along with the chart XML? Share this post Link to post Share on other sites
aneeshk Report post Posted April 3, 2013 Hi, I also have the same problem. My page has multiple charts rendered in different tabs. Now I need to save the charts as image in server. But I am able to do this for only the charts rendered in last tab. Even I defined the function FC_Rendered to print all domids once its rendered. But that also printing last tabs domids. I am stuck because of this. Waiting for your solutions. Thanks Aneesh Share this post Link to post Share on other sites
Guest Sumedh Report post Posted April 4, 2013 Hi Aneesh, Charts can be exported when they are in viewable region or portion. When you load the webpage or a tab of a browser, then chart gets rendered and hence export functionality can be performed. When charts get rendered, then only you can perform export functionality over the charts. Hope this helps! Share this post Link to post Share on other sites