Click here to Skip to main content
15,867,568 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
In a web Page I have three Fusion Chart. now i want to print the web page on the print button click event. i have written some code for this and it will work fine in IE Explorer,but in Google chrome it will show the chart in two page. how can i print these three chart in one page in google chrome.


JavaScript
<script type="text/javascript" >       
        FusionCharts.printManager.enabled(true);
        var myChart = new FusionCharts("../../FusionCharts/Pie2D.swf", "myChartId", "500px", "250px", "0", "1");
        myChart.setXMLUrl("Data.xml");
        myChart.render("chartContainer");
        FusionCharts.addEventListener(
          FusionChartsEvents.PrintReadyStateChange,
          function(identifier, parameter) {
              if (parameter.ready) {
                  alert("Chart is now ready for printing.");
                  document.getElementById('printButton').disabled = false;
              }           
          }
Posted
Updated 24-Mar-15 23:23pm
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900