gurkan Report post Posted October 29, 2010 Hi, I have been trying to use FusionCharts.printManager for my charts, but it seems like Print button is working when first chart displayed, but once I have changed date or add another line Print button will not be available (stayes as disabled) for printing. I am not sure but it seems FusionCharts.addEventListener not doing working after first chart has been displayed. Thans for help. <input type="button" onclick="FusionCharts.printManager.managedPrint()" value="<fmt:message key="button.printChart"/>" disabled="disabled" id="printButton" > .... .... $('printChartDiv').style.display=''; FusionCharts.addEventListener ( FusionChartsEvents.PrintReadyStateChange , function (identifier, parameter) { if(parameter.ready){ //alert("Chart is now ready for printing."); document.getElementById('printButton').disabled = false; } }); Share this post Link to post Share on other sites
Guest Basundhara Ghosal Report post Posted November 3, 2010 Hi Gurkan, Welcome to FusionCharts forum. Could you please try disabling and then enabling the print manager, after adding the new chart? I hope this helps. Share this post Link to post Share on other sites
gurkan Report post Posted November 4, 2010 Thanks for reply, Below is what I have tried, actually I have tried other combinations as well but no dice. ... FusionCharts.printManager.enabled(false); .... chart1.render("chart1div"); FusionCharts.printManager.enabled(true); $('printChartDiv').style.display=''; FusionCharts.addEventListener ( FusionChartsEvents.PrintReadyStateChange , function (identifier, parameter) { alert("parameter_ready:"+parameter.ready); if(parameter.ready){ //alert("Chart is now ready for printing."); document.getElementById('printButton').disabled = false; } }); Still not working... For the first chart I get; 'parameter_ready:false' 5sec later 'parameter_ready:true' Once I have update the chart I get; 'parameter_ready:false' and hangs there. Thanks. Share this post Link to post Share on other sites